Jump to content

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/106072-web-site-doesnt-come-up/
Share on other sites

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.

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?

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.