httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah <s...@onastick.net>
Subject Re: [users@httpd] "Connection refused when attempting to contact..." with vhosts
Date Sun, 03 Apr 2005 16:21:34 GMT
On Sun, Apr 03, 2005 at 05:27:45PM +0200, Milan Delibasic wrote:
> Hi,
> 
> I'm running apache 2.0.53 on WinXP SP2 for local testing. I haven't changed 
> the standard (shipped) http.conf except for adding (ip-based) vhosts. That 
> looks something like
> 
> <VirtualHost 127.0.0.20:80 <http://127.0.0.20:80>>
> DocumentRoot "C:/apache2/htdocs/site1/www"
> ServerName vvv.site1.co.yu <http://vvv.site1.co.yu>
> ErrorLog "C:/apache2/htdocs/site1/logs/error.log"
> CustomLog "C:/apache2/htdocs/site1/logs/access.log" common
> </VirtualHost>

Assuming that's actually how you have it configured, your syntax is
incorrect; See
http://httpd.apache.org/docs-2.0/mod/core.html#virtualhost for the
proper syntax for the <VirtualHost> container.

> The entry vvv.site1.co.yu <http://vvv.site1.co.yu>
> 127.0.0.20<http://127.0.0.20>was added to the etc\hosts file. The
> problem is that I cannot access
> vvv.site1.co.yu <http://vvv.site1.co.yu> (in Mozilla I get the message 
> "Connection refused when attempting to contact
> vvv.site1.co.yu<http://vvv.site1.co.yu>").
> The same applies when I try with ip number. The "localhost" works fine.

Have you configured a Listen directive for your other 127.0.0.x IP
addresses? Note that 'localhost' is only mapped to '127.0.0.1'. Note
also that, IIRC,  you'll have to fully exit and restart your browser in
order to it to notice the changes in the hosts file.

--n
 
-- 
<huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
<huey> ^^^ Making Flippy Floppy


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message