I'm running a local Apache server, and done some virtual host settings, and my problem is now that I can't get Firefox to listen to ip 127.0.0.2, eventhough I have also edited the hosts file in Windows XP.
Any hint or link would be appreciated, thanks :)
P.S. I have Firefox version 0.8
Apache, virtual host, won't listen to 127.0.0.2
-
- Posts: 6
- Joined: June 25th, 2004, 8:48 am
I know :) and Firefox has no problem with 127.0.0.1.
Virtual host is a kind of "fake domain" in my case, which allows you to configurate a virtual ip address to point on another directory than the standard one. Better I can't explain it :)
P.S. Internet Explorer and Opera has no problem listening to 127.0.0.2
Virtual host is a kind of "fake domain" in my case, which allows you to configurate a virtual ip address to point on another directory than the standard one. Better I can't explain it :)
P.S. Internet Explorer and Opera has no problem listening to 127.0.0.2
- logan
- Posts: 3453
- Joined: May 22nd, 2003, 3:51 pm
- Location: NGC 2403
- Contact:
I don't know what your config looks like, but if you are using NameVirtualHost, you don't have to use multiple ip addresses (unless you are doing ssl). I imagine you already have it bound to 127.0.0.1, with a Listen statement or such.
NameVirtualHost *
<VirtualHost *>
ServerName www.domain.com
ServerAlias domain.com
...
</VirtualHost>
<VirtualHost *>
ServerName www.domain.org
ServerAlias domain.org
...
</VirtualHost>
...
Apache then reads the Host: header sent by the browser, matches it up to the ServerName/Alias and uses the appropriate VirtualHost.
I don't know what kindof error you are getting, or why firefox canot hit 127.0.0.2.
NameVirtualHost *
<VirtualHost *>
ServerName www.domain.com
ServerAlias domain.com
...
</VirtualHost>
<VirtualHost *>
ServerName www.domain.org
ServerAlias domain.org
...
</VirtualHost>
...
Apache then reads the Host: header sent by the browser, matches it up to the ServerName/Alias and uses the appropriate VirtualHost.
I don't know what kindof error you are getting, or why firefox canot hit 127.0.0.2.
-
- Posts: 6
- Joined: June 25th, 2004, 8:48 am
httpd.conf:
NameVirtualHost 127.0.0.2
<VirtualHost 127.0.0.2>
DocumentRoot c:/test
ServerName test.localhost
</VirtualHost>
hosts:
127.0.0.1 localhost
127.0.0.2 test.localhost
the error message:
While trying to retrieve the URL: http://test.localhost/
The following error was encountered:
Unable to determine IP address from host name for test.localhost
The dnsserver returned:
Name Error: The domain name does not exist.
This means that:
The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.
NameVirtualHost 127.0.0.2
<VirtualHost 127.0.0.2>
DocumentRoot c:/test
ServerName test.localhost
</VirtualHost>
hosts:
127.0.0.1 localhost
127.0.0.2 test.localhost
the error message:
While trying to retrieve the URL: http://test.localhost/
The following error was encountered:
Unable to determine IP address from host name for test.localhost
The dnsserver returned:
Name Error: The domain name does not exist.
This means that:
The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.