httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Cohen" <supp...@gej-it.com>
Subject RE: [users@httpd] equivalent?
Date Thu, 24 Jul 2003 05:24:02 GMT
Both Vhsots are not valid, but the first made more sense to me.
They should look like that:
** notice the ServerName directive.

<VirtualHost *>
        ServerAdmin webmaster@myserver.com
        ServerName www.myserver1.com
        DocumentRoot /var/www/html
        Options Indexes
        <Directory /var/www/html>
          AllowOverride AuthConfig FileInfo Limit
          Order allow,deny
          Allow from all
        </Directory>
</VirtualHost>

<VirtualHost *>
        ServerAdmin webmaster@myserver.com
        ServerName www.myserver2.com
        DocumentRoot /var/www/html
        Options Indexes
        <Directory /var/www/html>
          AllowOverride AuthConfig FileInfo Limit
          Order allow,deny
          Allow from all
        </Directory>
</VirtualHost>

All the best,
Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!



> -----Original Message-----
> From: Stand H [mailto:hstandit@yahoo.com]
> Sent: Thursday, July 24, 2003 1:04 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] equivalent?
> 
> Hi,
> 
> Are the two config equivent?
> 
> <VirtualHost www.myserver.com>
>         ServerAdmin webmaster@myserver.com
>         ServerName www.myserver.com
>         DocumentRoot /var/www/html
>         Options Indexes
>         <Directory "/var/www/html">
>                 AllowOverride AuthConfig FileInfo
> Limit
>                 Order allow,deny
>                 Allow from all
>         </Directory>
> </VirtualHost>
> 
> 
> <VirtualHost www.myserver.com>
>         ServerAdmin webmaster@myserver.com
>         ServerName www.myserver.com
>         DocumentRoot /var/www/html
>         Options Indexes
>         AllowOverride AuthConfig FileInfo Limit
>         Order allow,deny
>         Allow from all
> </VirtualHost>
> 
> Thanks,
> 
> Stand
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> ---------------------------------------------------------------------
> 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


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