Advertisement
Sergio_Istea

laboratorio

May 14th, 2024
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <VirtualHost *:80>
  2.  
  3. ServerAdmin webmaster@localhost
  4. DocumentRoot /var/www/html
  5.  
  6.  
  7. ErrorLog ${APACHE_LOG_DIR}/error.log
  8. CustomLog ${APACHE_LOG_DIR}/access.log combined
  9.  
  10. # Acceso irrestricto
  11. # politica general, aplica a sub directorios
  12. <Directory /var/www/html>
  13. Require all granted
  14. </Directory>
  15.  
  16. # Difiere de la politica general de html.
  17. <Directory /var/www/html/gerencia>
  18. Order deny,allow
  19. Deny from all
  20. Allow from 190.20.0.0/25
  21. </Directory>
  22.  
  23.  
  24. <Directory /var/www/html/descargas>
  25. AuthType Basic
  26. AuthName "Acceso restringido"
  27. AuthUserFile /etc/apache2/httpasswd
  28. Require user gerencia ventas
  29. </Directory>
  30.  
  31.  
  32. </VirtualHost>
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement