changed user IP and now site has default apache page

sde

Verified User
Joined
Sep 11, 2004
Messages
214
Location
Temecula, CA
Here's what I did:

- edited the user
- assigned their account a new ip (it was working on the shared ip before)

Result: Site now displays default apache 'hey it works' page.


I read another post where this cleared up after a few hours which leads me to think of propegation, however I changed my local /etc/hosts file to point to the new IP and still get the default apache page.

I've verified that the DNS settings for that user's domain have all been changed to the new IP.

I've restarted apache and named.

It's been about an hour since I've done this. I put it back to the old IP and I get the same problem.

Any suggestions?
 
Not unless you tell us the name of your site, the IP# it was hosted at before, and the one it's hosted at now.

Jeff
 
i found out the owner of the domain was managing their own DNS and just pointing an A record over. once this was changed, it was fixed.

i'm still curious though, why didn't it work when i modified my /etc/hosts file to point that domain to the new IP? i pinged the domain after i modified it to verify that my local system was going to the new IP.
 
Did you make the change to the hosts file on your server? Or on your local desktop system? Making it on the server won't work, and if that's where you've made it you should delete it.

To see the site in your browser, you need to find and change the hosts file on your desktop system.

Jeff
 
Also maybe apache had not restarted yet and so therefore was not listening for your domain on the new ip.



.
 
floyd said:
Also maybe apache had not restarted yet and so therefore was not listening for your domain on the new ip.
i mentioned in my first post that i restarted apache. i also mentioned that i overrode the dns from your other post. don't get me wrong, i appreciate the help.

Did you make the change to the hosts file on your server? Or on your local desktop system? Making it on the server won't work, and if that's where you've made it you should delete it.

To see the site in your browser, you need to find and change the hosts file on your desktop system.

Jeff
yes, i'm familiar with how that works. the changes were to my local system. i override local dns often when developing web sites.


At least I think I know it should have been working as I expected it to based on the responses here. It works now, so I'm not too concerned anymore.

Thanks all for taking the time to answer.
 
It works now, so I'm not too concerned anymore.

Well we were just following up on:

i'm still curious though, why didn't it work when i modified my /etc/hosts file to point that domain to the new IP?

Jeff asked the question because most people use Windows and Windows does not have a /etc/hosts file. So he probably thought you may have edited the one on the server. Apparently you are using Linux for your web browsing a site development.

I am curious, what are you using for web development in Linux?
 
My primary tool is a macbook pro. Most of my work is with PHP and I use Zend Studio (not the eclipse version) as my primary IDE. Either version works on Linux as well.

Window's etc/hosts file is here: /Windows/System32/drivers/etc/hosts

It's been there since at least XP, maybe before that. Kinda funny how they use the same directory and file naming huh. It works the same way as it does in linux.
 
And my favorite tool for website development is kwrite on my desktop and joe on my servers. Which is why my sites look as bad as they do :).

Jeff
 
Back
Top