Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- example.com # shows index.html in root or error page if not exist
- example.com/test.txt # shows test.txt in root
- example.com/test.php # runs if IP matches or error page if not exist
- example.com/dir1 # shows index.html in dir1 or error page if not exist
- example.com/dir1/test.txt # shows test.txt in dir1
- example.com/dir2 # shows index.html for dir2 if IP matches or error page
- ...
- <FilesMatch "^.*$>
- Require all denied
- </FilesMtch>
- <FilesMatch "^.*.(html|txt|pdf)$">
- Require all granted
- </FilesMatch>
- <FilesMatch "^.*.php$">
- Require ip 192.168.0.10
- </FilesMatch>
- <Directory />
- AllowOverride None
- Require all denied
- </Directory>
- <Directory /var/www/html>
- AllowOverride None
- Options Indexes FollowSymLinks
- <LimitExcept GET POST OPTIONS>
- Require all granted
- </LimitExcept>
- </Directory>
- <Directory /var/www/htm/dir2>
- AllowOverride None
- Require ip 192.168.0.10
- <Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement