kremisoski

Apache ban all ips

Mar 28th, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #LOAD the authz_core module
  2. <VirtualHost *:80>
  3. ServerAdmin webmaster@localhost
  4. DocumentRoot /var/www/html
  5.  
  6. <Directory /var/www/html>
  7. Require ip xxx.xxx.xxx.xxx
  8. </Directory>
  9.  
  10. ErrorLog ${APACHE_LOG_DIR}/error.log
  11. CustomLog ${APACHE_LOG_DIR}/access.log combined
  12. </VirtualHost>
Add Comment
Please, Sign In to add comment