|
Home > Archive > Apache Server configuration support > August 2005 > Vhosts with apache2
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Vhosts with apache2
|
|
| agerth@gmx.de 2005-08-22, 2:55 am |
| i have configured my apache with severeral virtual host. httpd2-prefork
-S shows all vhosts, but if i start the apache, he said,
"NameVirtualHost ip:80 has no virtual hosts" and nothing will work. Can
somebody help me?
| |
| Hanspeter Leupin 2005-08-22, 6:01 pm |
| Am 21 Aug 2005 22:22:34 -0700 schrieb agerth@gmx.de:
> i have configured my apache with severeral virtual host. httpd2-prefork
>
> -S shows all vhosts, but if i start the apache, he said,
> "NameVirtualHost ip:80 has no virtual hosts" and nothing will work. Can
>
> somebody help me?
Hi,
make sure that you enable this line in http.conf AHEAD of your virtual
hosts:
-----------------------
NameVirtualHost *:80
-----------------------
Sample of virtual host:
# subdomain.myhost.com
<VirtualHost *:80>
ServerName subdomain.myhost.com
DocumentRoot c:/Web/pages
ErrorLog c:\path\logs\subdomain_myhost_com.log
DirectoryIndex index.htm
<Directory "/subdomain">
Order deny,allow
# deny from all
allow from all
</Directory>
</VirtualHost>
and restart Apache
Regards
Hanspeter
|
|
|
|
|