terrorx Posted May 4, 2008 Share Posted May 4, 2008 I have googled this and yes, there are guides on how to use this. Nothing i have seen is for 10.5.2 though.. So i need help with this. I have started the web server. I have a DynDNS account and registed PJP.ath.cx with me and originly had it set to my ip adress but it would just take me to my router(linksys wrt150n). i want it to go to my site. so i set it to 192.168.1.108 and it takes ME to my the hackbooks site and not the user site. but only computers on my DHCP network can access it. which i get. i want this to be set to go to the used site which the hackbook lists as 192.168.1.108/~terrorx any help would be apreciated i apologise for my horrid spelling. only one side of my brain works:P Link to comment Share on other sites More sharing options...
sarahbau Posted May 5, 2008 Share Posted May 5, 2008 To make any computers on your local network go to a different IP than what your router's DNS points them to, you have to have the host in your /etc/hosts file. For example: ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 192.168.1.108 pjp.ath.cx 255.255.255.255 broadcasthost ::1 localhost Link to comment Share on other sites More sharing options...
terrorx Posted May 5, 2008 Author Share Posted May 5, 2008 I am not exactly sure what you mean by this, but its not the computers on my network i am having the troubles connecting to the site. it is anything outside of my network that can not connect to my site. i have my http://pjp.ath.cx ip host set to 142.68.245.241 . now when i go to the url from here it takes me to my router. but will not display anything for anyone not on my network. Link to comment Share on other sites More sharing options...
The Baron Posted May 5, 2008 Share Posted May 5, 2008 You need to set up port forwarding on your router. See this guide: http://portforward.com/cports.htm EDIT: that's a bit of a rubbish guide, try google 'port forward 80 router' Link to comment Share on other sites More sharing options...
terrorx Posted May 5, 2008 Author Share Posted May 5, 2008 k i found this guide http://portforward.com/english/routers/por...150N/Apache.htm but i am not sure the differnece between the signel port and range port. should i do both or just one? Another question i have is, Should i have my DynDNS accout target 192.168.1.108 or 142.68.245.241 Link to comment Share on other sites More sharing options...
chris2k Posted May 5, 2008 Share Posted May 5, 2008 Nobody than yourself will be able to reach 192.168.*.* because it's a private IP-Address. You need to give other people (and DynDNS) your WAN/Internet IP-Address. If your webserver only serves on port 80 (standard-http-port) then you only need to forward port 80. Link to comment Share on other sites More sharing options...
terrorx Posted May 5, 2008 Author Share Posted May 5, 2008 Yes. i think i have it. but my issue is i have to go to http://pjp.ath.cx/~terrorx to get to my site. i can not find the directory where the main page it. Link to comment Share on other sites More sharing options...
The Baron Posted May 5, 2008 Share Posted May 5, 2008 The ~ dir is your personal site. You need to put content in /Library/WebServer/share/httpd/ (i think) to have it show up under 192.168.0.1 for example. Link to comment Share on other sites More sharing options...
terrorx Posted May 5, 2008 Author Share Posted May 5, 2008 i checked in that directory and the only thing there is a folder called manual. i droped my index.html page in there but it is still coming up with that apache new install page Link to comment Share on other sites More sharing options...
The Baron Posted May 5, 2008 Share Posted May 5, 2008 Sorry, it's /Library/WebServer/Documents/ I just tested it and it works ok, good luck. Link to comment Share on other sites More sharing options...
Recommended Posts