diff --git a/README.md b/README.md index 876eae050..831135f27 100644 --- a/README.md +++ b/README.md @@ -31,14 +31,10 @@ TorrentPier II - движок торрент-трекера, написанны - internal_data/ajax_html - internal_data/atom - internal_data/cache -- internal_data/cache/filecache - internal_data/captcha - internal_data/log - internal_data/sitemap - internal_data/triggers -- styles/images -- styles/images/ranks -- styles/images/smiles ## Необходимые настройки php diff --git a/install/php-fpm+nginx/nginx.conf b/install/php-fpm+nginx/nginx.conf index e32641d2a..b96c28a6e 100644 --- a/install/php-fpm+nginx/nginx.conf +++ b/install/php-fpm+nginx/nginx.conf @@ -125,13 +125,16 @@ http { location ~ \/admin|backup\/ { deny all; - # allow YOUR_IP; + #allow YOUR_IP; } # Deny folder (Sec. lvl1) - location ~ \/(cache|log|attach_mod|config|includes|language|triggers)\/ { + location ~ \/(internal_data|library)\/ { deny all; } + # sitemap rewrite + rewrite ^/sitemap.xml$ /internal_data/sitemap/sitemap.xml; + # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # deny sql,tpl,db,inc,log diff --git a/upload/.htaccess b/upload/.htaccess index dd1ef258a..90e71cb17 100644 --- a/upload/.htaccess +++ b/upload/.htaccess @@ -6,4 +6,7 @@ Options All -Indexes deny from all - \ No newline at end of file + + +RewriteEngine On +RewriteRule ^sitemap.xml$ internal_data/sitemap/sitemap.xml [L] \ No newline at end of file diff --git a/upload/internal_data/cache/filecache/.htaccess b/upload/internal_data/cache/filecache/.htaccess deleted file mode 100644 index baa56e5a3..000000000 --- a/upload/internal_data/cache/filecache/.htaccess +++ /dev/null @@ -1,2 +0,0 @@ -order allow,deny -deny from all \ No newline at end of file