mirror of
https://github.com/espocrm/espocrm.git
synced 2026-03-03 02:27:01 +00:00
Apache / nginx rewrite changes
This commit is contained in:
@@ -9,13 +9,9 @@ DirectoryIndex index.php index.html
|
||||
|
||||
# PROTECTED DIRECTORIES
|
||||
RewriteCond %{REQUEST_FILENAME} -d
|
||||
RewriteRule ^/?(data|api|client)/ - [F]
|
||||
RewriteRule ^/?(api|client)/ - [F]
|
||||
|
||||
RewriteRule ^/?data/config\.php$ - [F]
|
||||
RewriteRule ^/?data/logs/ - [F]
|
||||
RewriteRule ^/?data/cache/ - [F]
|
||||
RewriteRule ^/?data/upload/ - [F]
|
||||
RewriteRule ^/?data/\.backup/ - [F]
|
||||
RewriteRule ^/?data/ - [F]
|
||||
RewriteRule ^/?application/ - [F]
|
||||
RewriteRule ^/?custom/ - [F]
|
||||
RewriteRule ^/?vendor/ - [F]
|
||||
|
||||
@@ -67,21 +67,12 @@ service apache2 restart',
|
||||
try_files /reset.html =404;
|
||||
}
|
||||
|
||||
location ^~ (data|api)/ {
|
||||
location ^~ (api|client)/ {
|
||||
if (-e $request_filename){
|
||||
return 403;
|
||||
}
|
||||
}
|
||||
location ^~ /data/logs/ {
|
||||
deny all;
|
||||
}
|
||||
location ^~ /data/config.php {
|
||||
deny all;
|
||||
}
|
||||
location ^~ /data/cache/ {
|
||||
deny all;
|
||||
}
|
||||
location ^~ /data/upload/ {
|
||||
location ^~ /data/ {
|
||||
deny all;
|
||||
}
|
||||
location ^~ /application/ {
|
||||
|
||||
Reference in New Issue
Block a user