Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Trouble getting URL to mask IP address.
I am running Apache 2.0.59 on my mac (10.5.7). I have a domain name ([b]www.example.com[/b]) registered with godaddy that remains on their nameservers and forwards (w/o masking) to my home ip. The connection works and I can view my site so there are no problems with routing, port-listening, or directory hierarchies.
The problem is that once i'm at my site, the address bar of my browser lists my server's ip followed by any additional directories ([b]126.96.36.199/home.php[/b]). I would like for the url to show instead ([b]www.example.com/home.php[/b] ).
From what I've read so far I think I need to change something in the httpd.conf file, but I'm not sure what that is. I've tried changing the NameServer directive to "[b]NameServer www.example.com[/b]" and I've tried using virtualhosts NameServer ... to no avail.
Am I missing something totally obvious? It seems like this should be a lot easier.
0 · ·