Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerName laboratorio.jueves
- DocumentRoot /var/www/laboratorio.jueves
- #DocumentRoot /home/istea
- <Directory /var/www/laboratorio.jueves>
- Options -Indexes -FollowSymLinks
- </Directory>
- <Directory /var/www/laboratorio.jueves/catalogo>
- DirectoryIndex catalogo.html
- </Directory>
- LogFormat "%t Usuario: %u - IP: %h" admin_access
- <Directory /var/www/laboratorio.jueves/admin>
- Options Indexes
- AuthType basic
- AuthName "Acceso restringindo."
- AuthUserFile /etc/apache2/.htpasswd
- #Require valid-user ip 192.168.0.0/24
- Require user istea
- </Directory>
- ErrorLog ${APACHE_LOG_DIR}/laboratorio.jueves.error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- # Variables de entorno segun condiciones
- SetEnvIf Request_URI ^/admin admin_env
- CustomLog /var/www/laboratorio.jueves/admin_access.log admin_access env=admin_env
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement