You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tobias Herp <ma...@tobias-herp.de> on 2004/09/15 23:49:41 UTC

[users@httpd] Re: Virtual host configure may be wrong.

Javier Carlos Viegas schrieb:

>Hi, i have one linux box running Mandrake 10, Apache
>2.0 and dsl connection with dynamic ip, i´ve already
>have a website up and running, and i want to host
>other site for other domain, im using dyndns to update
>my ipadress when changes. 
>
>I am using this to configure my second site for the
>second domain, but when i put www.secondsite.com im
>redirected to the first one:
>
>vhost.conf
>
><VirtualHost *:80>
>ServerName www.secondsite.com
>ServerRoot /etc/httpd/2.0
>DocumentRoot /var/www/secondsite/
></VirtualHost>
>
>Any hints?? 
>  
>
Hi, Javier,

I just got help here with my Apache 2/VirtualHost woes.
Several topics:
- check if the modules proxy and proxy_http are loaded; they are needed 
for VirtualHosts. You might have a /etc/sysconfig/apache2 file where 
APACHE_MODULES are configured
- for Apache -2.0.49, change *:80 to *
- there must be exactly one NameVirtualHost entry (for each combination 
of IP and port) in your httpd.conf and all included files

You might figure out which apache binary is used and call this with -S, 
but this won't necessarily find all bugs (e.g. as for v2.0.49, it 
doesn't complain about double NameVirtualHost statements)

hth,

Tobias


---------------------------------------------------------------------
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