Advertisement
pkas

Untitled

Nov 26th, 2023
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerAdmin webmaster@localhost
  3. ServerName blabla.de
  4. ServerAlias *.blabla.de
  5. DocumentRoot /var/www/blabla/
  6. ErrorLog ${APACHE_LOG_DIR}/blabla_error.log
  7. CustomLog ${APACHE_LOG_DIR}/blabla_access.log combined
  8. </VirtualHost>
  9.  
  10. <VirtualHost *:443>
  11. SSLEngine on
  12. ServerAdmin webmaster@localhost
  13. ServerName blabla.de
  14. ServerAlias *.blabla.de
  15. DocumentRoot /var/www/blabla/
  16. ErrorLog ${APACHE_LOG_DIR}/blabla_error.log
  17. CustomLog ${APACHE_LOG_DIR}/blabla_access.log combined
  18. </VirtualHost>
  19.  
  20. <Directory /var/www/blabla>
  21. Options Indexes FollowSymLinks MultiViews
  22. AuthType Basic
  23. AuthName "Geben Sie Benutzername und Passwort ein"
  24. AuthUserFile /etc/apache2/.htpasswd
  25. Require valid-user
  26. Order deny,allow
  27. Deny from all
  28. Allow from 192.168.176.0/24
  29. Allow from 192.168.177.0/24
  30. Allow from 192.168.178.0/24
  31. Satisfy all
  32. </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement