halpee Posted May 17, 2008 Share Posted May 17, 2008 Hi, I have MAC OSX 10.5 with Apache 2.2 installed. I also have a web site that I designed and I have registered the name. After adding my web site name to ServerName, and putting all my code in the Apache directory, I enter my web site address but I get the cPanel page back. When I sue Localhost - it works fine. Apache is listening on port 80, the same as in the Servername, but my site doesn't come up. Can someone help? Quote Link to comment https://forums.phpfreaks.com/topic/106072-web-site-doesnt-come-up/ Share on other sites More sharing options...
trq Posted May 18, 2008 Share Posted May 18, 2008 Firstly, have you setup your DNS to point to your ip address? This will allow clients visiting your site from the www to see your site. To be able to view your site by name from within the same LAN as the server you will need to add a line like... 127.0.0.1 yoursitename.com to your /etc/hosts file. Quote Link to comment https://forums.phpfreaks.com/topic/106072-web-site-doesnt-come-up/#findComment-543991 Share on other sites More sharing options...
halpee Posted May 19, 2008 Author Share Posted May 19, 2008 Thanks a lot for your answer. I have done it, but I was told that I need to put the "nameserver" in the registry and point it to my web site. They ask not to put my IP address in there, so which nameserver do I put there? Is this the same as what I put in the hosts file? Quote Link to comment https://forums.phpfreaks.com/topic/106072-web-site-doesnt-come-up/#findComment-544898 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.