You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by AE <ae...@terra.es> on 2005/06/01 23:59:56 UTC

[users@httpd] Vhosts

Greetings, I have a fixed IP and running apache 2.0.54. The server worked 
until I tried hosting another domain and created VHosts. Now, all I get is 
FORBIDDEN when browsed. Any ideas appreciated...

 AllowOverride None
</Directory>

<Directory "C:/domain1">
  Order Allow,Deny
  Allow from All
</Directory>

<Directory "C:/domain2">
  Order Allow,Deny
  Allow from All
</Directory>

<VirtualHost 192.168.0.111:80>
  ServerName www.domain1.com:80
  DocumentRoot "C:/domain1"
</VirtualHost>

<VirtualHost 192.168.0.111:80>
  ServerName www.domain2.com:80
  DocumentRoot "C:/domain2"
</VirtualHost>

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


Re: [users@httpd] Vhosts

Posted by Patrick Donker <li...@webpagina.nu>.
AE wrote:

>Greetings, I have a fixed IP and running apache 2.0.54. The server worked 
>until I tried hosting another domain and created VHosts. Now, all I get is 
>FORBIDDEN when browsed. Any ideas appreciated...
>
> AllowOverride None
></Directory>
>
><Directory "C:/domain1">
>  Order Allow,Deny
>  Allow from All
></Directory>
>
><Directory "C:/domain2">
>  Order Allow,Deny
>  Allow from All
></Directory>
>
><VirtualHost 192.168.0.111:80>
>  ServerName www.domain1.com:80
>  DocumentRoot "C:/domain1"
></VirtualHost>
>
><VirtualHost 192.168.0.111:80>
>  ServerName www.domain2.com:80
>  DocumentRoot "C:/domain2"
></VirtualHost>
>
>  
>
afaik you should put the directory directives *inside* the vh sections, 
not outside

-Patrick

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