This commit is contained in:
Vitalychez 2014-09-06 21:59:04 +04:00
commit cf044df543
3 changed files with 9 additions and 2 deletions

View file

@ -128,7 +128,7 @@ http {
# allow YOUR_IP;
}
# Deny folder (Sec. lvl1)
location ~ \/(cache|log|attach_mod|config|includes|language|triggers)\/ {
location ~ \/(cache|log|attach_mod|config|includes|language|triggers|data)\/ {
deny all;
}
@ -141,5 +141,8 @@ http {
location ~ \.(.*sql|tpl|db|inc|log)$ {
deny all;
}
# rewrite url
rewrite ^/sitemap.xml$ /upload/sitemap.xml;
}
}

View file

@ -6,4 +6,7 @@ Options All -Indexes
<FilesMatch "\.(.*sql|tpl|inc|db|log)|(config|common).php$">
deny from all
</FilesMatch>
</FilesMatch>
RewriteEngine On
RewriteRule ^sitemap.xml$ upload/sitemap.xml [L]

1
upload/upload/.htaccess Normal file
View file

@ -0,0 +1 @@
Options All -Indexes