httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milan Delibasic <mmmi...@gmail.com>
Subject Re: [users@httpd] "Connection refused when attempting to contact..." with vhosts
Date Mon, 04 Apr 2005 17:58:12 GMT
That was me, I didn't write it in plain text...

The vhost block actually starts with <VirtualHost 127.0.0.20:80>...
(so it is not a syntax error). Any other ideas? (I had a simillar
configuration working before on the old machine; the only difference
is that I didn't have SP2 installed then)

Milan

On Apr 4, 2005 7:43 PM, Milan Delibasic <mmmilan@gmail.com> wrote:
> Sorry for the delay,
>  
>  I have "Listen 80" written. I understand that localhost=127.0.0.1, and it works fine,
but the problem is with the ip-based vhost mapped to 127.0.0.20 (in the hosts file). Just
help me out with the IIRC term :)...
>  
>  Thanks anyway,
>  Milan
> 
> 
> 
> On Apr 3, 2005 6:21 PM, Noah <sitz@onastick.net> wrote:
> > 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