terrorx
May 4 2008, 09:35 PM
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
sarahbau
May 5 2008, 06:10 AM
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:
CODE
##
# 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
terrorx
May 5 2008, 01:13 PM
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.
The Baron
May 5 2008, 01:17 PM
You need to set up port forwarding on your router. See this guide:
http://portforward.com/cports.htmEDIT: that's a bit of a rubbish guide, try google 'port forward 80 router'
terrorx
May 5 2008, 03:08 PM
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
chris2k
May 5 2008, 04:22 PM
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.
terrorx
May 5 2008, 05:01 PM
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.
The Baron
May 5 2008, 05:40 PM
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.
terrorx
May 5 2008, 05:49 PM
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
The Baron
May 5 2008, 09:04 PM
Sorry, it's /Library/WebServer/Documents/
I just tested it and it works ok, good luck.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.