Advertisement
Sergio_Istea

laboratorio.jueves.conf

Nov 9th, 2023
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <VirtualHost *:80>
  2.  
  3.  
  4. ServerName laboratorio.jueves
  5.  
  6. DocumentRoot /var/www/laboratorio.jueves
  7. #DocumentRoot /home/istea
  8.  
  9. <Directory /var/www/laboratorio.jueves>
  10.  
  11. Options -Indexes -FollowSymLinks
  12.  
  13. </Directory>
  14.  
  15.  
  16. <Directory /var/www/laboratorio.jueves/catalogo>
  17.  
  18. DirectoryIndex catalogo.html
  19.  
  20. </Directory>
  21.  
  22.  
  23. LogFormat "%t Usuario: %u - IP: %h" admin_access
  24.  
  25. <Directory /var/www/laboratorio.jueves/admin>
  26.  
  27. Options Indexes
  28.  
  29. AuthType basic
  30.  
  31. AuthName "Acceso restringindo."
  32.  
  33. AuthUserFile /etc/apache2/.htpasswd
  34.  
  35. #Require valid-user ip 192.168.0.0/24
  36.  
  37. Require user istea
  38.  
  39.  
  40. </Directory>
  41.  
  42. ErrorLog ${APACHE_LOG_DIR}/laboratorio.jueves.error.log
  43. CustomLog ${APACHE_LOG_DIR}/access.log combined
  44.  
  45. # Variables de entorno segun condiciones
  46. SetEnvIf Request_URI ^/admin admin_env
  47. CustomLog /var/www/laboratorio.jueves/admin_access.log admin_access env=admin_env
  48.  
  49. </VirtualHost>
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement