virtual hosts not working anymore
I'm running a linux server for developing and testing websites on.
fedora core 2
apache 1.3
Its been running for weeks now without a problem. Last night I had to turn it off. I flipped it on this morning and when I tried accessing sites on it I was getting a "not found" error. When I attempted to restart apache, I got this error: "[error] Failed to resolve server name for 192.168.1.104 (check DNS) -- or specify an explicit ServerName"
Here's some more details about the server...
First, I don't actually own a domain. I use a dyndns.org name to point to my server. And I use virtual hosts.
exceprts from httpd.conf:
ServerName devserver
NameVirtualHost 192.168.1.104
<VirtualHost 192.168.1.104>
DocumentRoot /usr/local/apache/htdocs/
ServerAlias name.dynalias.com
</VirtualHost>
<VirtualHost 192.168.1.104>
DocumentRoot /home/username/public_html/
ServerName username
ServerAlias username.name.dynalias.com
</VirtualHost>
Now, if I enter my dyndns name (name.dynalias.com) I can access the default page. If I access user accounts using "name.dynalias.com/~username", it also works. So basically, my virtual hosts have suddenly stopped working.
error log produces
[Thu May 12 12:10:37 2005] [error] Failed to resolve server name for 192.168.1.104 (check DNS) -- or specify an explicit ServerName
[Thu May 12 12:10:38 2005] [notice] Apache/1.3.33 (Unix) PHP/4.3.11 configured -- resuming normal operations
[Thu May 12 12:10:38 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)
Any idea why my virtual hosts have given out.
Thanks in advance