mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Конфиги, реврайты, лишняя папка.
This commit is contained in:
parent
7eaa4f3b8d
commit
53c0e9f9b8
4 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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$ internal_data/sitemap/sitemap.xml [L]
|
|
@ -1,2 +0,0 @@
|
|||
order allow,deny
|
||||
deny from all
|
Loading…
Add table
Add a link
Reference in a new issue