Advertisement
Sergio_Istea

implemtancion de variables de entonro (sh)

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