bycz
(usa CentOS)
Enviado em 20/03/2013 - 21:05h
<VirtualHost *:80>
ServerName demo1.tano.com
DocumentRoot /var/www/html/demo1/
ServerAlias
www.demo1.tano.com
</VirtualHost>
<directory "/var/www/html/demo1/">
AllowOverride All
Order allow,deny
Allow from all
AuthType Basic
AuthName "Acesso Restrito: "
AuthUserFile "/var/www/html/demo1/.htpasswd"
Require valid-user
</directory>
----------------------------------------------------
<VirtualHost *:80>
ServerName demo2.tano.com
DocumentRoot /var/www/html/demo2/
ServerAlias
www.demo2.tano.com
</VirtualHost>
<directory "/var/www/html/demo2/">
AllowOverride All
Options MultiViews
Order allow,deny
Allow from all
AuthType Basic
AuthName "Acesso Restrito: "
AuthUserFile "/var/www/html/demo2/.htpasswd"
Require valid-user
</directory>