Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Variables de entorno
- # document_Root=/var/www/laboratorio.jueves
- <VirtualHost *:80>
- # Variables de entorno
- ServerName laboratorio.jueves
- DocumentRoot ${document_Root}
- <Directory ${document_Root}>
- Options -Indexes -FollowSymLinks
- </Directory>
- <Directory ${document_Root}/catalogo>
- DirectoryIndex catalogo.html
- </Directory>
- LogFormat "%t Usuario: %u - IP: %h" admin_access
- <Directory ${document_Root}/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 ${document_Root}/admin_access.log admin_access env=admin_env
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement