Last active
August 29, 2015 13:57
-
-
Save tonejito/9363566 to your computer and use it in GitHub Desktop.
Apache httpd configuration sections
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Por SANIDAD MENTAL solo usen Allow,Deny :P | |
# Niega el acceso a TODOS | |
#Order Allow,Deny | |
#Deny From ALL | |
# Permite el acceso a TODOS | |
#Order Allow,Deny | |
#Allow From ALL | |
# Permite el acceso a un segmento y hostname | |
#Order Allow,Deny | |
#Allow From 132.247.0.0/16 ssd.tonejito.info | |
# Hace match en las dos entradas y niega porque la ultima es la que hace efecto | |
#Order Allow,Deny | |
#Allow From 132.248.27.* | |
#Deny From 132.248.27.* | |
# Hace match con allow y permite el acceso | |
#Order Deny,Allow | |
#Allow From 132.248.27.* | |
# Hace match con Deny y niega el acceso | |
#Order Deny,Allow | |
#Deny From 132.248.27.0/24 | |
# No hace match con la politica y permite el acceso | |
#Order Deny,Allow | |
#Allow from null.tonejito.info | |
# Hace match con las dos directivas y permite el acceso debido a que Allow es la ultima que se procesa | |
Order Deny,Allow | |
Allow From 132.248.27.* | |
Deny From 132.248.27.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://httpd.apache.org/docs/2.2/sections.html | |
# <Directory> (except regular expressions) and .htaccess done simultaneously (with .htaccess, if allowed, overriding <Directory>) | |
# <DirectoryMatch> (and <Directory ~>) | |
# <Files> and <FilesMatch> done simultaneously | |
# <Location> and <LocationMatch> done simultaneously | |
<VirtualHost _default_:80> | |
ServerName apps.tonejito.info | |
DocumentRoot /opt/empty | |
<Directory /opt/empty> | |
Options +Indexes | |
AllowOverride None | |
</Directory> | |
<DirectoryMatch "/opt/(bla|lol)"> | |
DirectoryIndex muerte.txt | |
</DirectoryMatch> | |
<Files "*.log"> | |
Order Allow,Deny | |
Allow From ALL | |
</Files> | |
<Files "*.pdf"> | |
Order Allow,Deny | |
Allow From 127.0.0.1 | |
</Files> | |
<Location /denied> | |
Order Deny,Allow | |
Deny From ALL | |
</Location> | |
LogLevel info | |
CustomLog ${APACHE_LOG_DIR}/access.log webgoat | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
#RedirectMatch /?.*$ http://localhost:0/ | |
</VirtualHost> | |
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment