1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garradin_ynh.git synced 2024-09-03 18:36:17 +02:00

delete useless location in nginx.conf

This commit is contained in:
Robles Rodolphe 2020-11-23 14:15:07 +01:00
parent 02a88af5d1
commit efd79d42f3

View file

@ -8,19 +8,7 @@ location __PATH__/ {
rewrite ^ https://$server_name$request_uri? permanent;
}
location ~ 403 {
rewrite ^(.*)$ /include/ redirect;
rewrite ^(.*)$ /cache/ redirect;
rewrite ^(.*)$ /plugins/ redirect;
rewrite ^(.*)$ /templates/ redirect;
rewrite ^(.*)$ /.*.sqlite redirect;
rewrite ^(.*)$ /.*.log redirect;
rewrite ^(.*)$ /(README|VERSION|COPYING) redirect;
rewrite ^(.*)$ /config\.(.*)\.php redirect;
}
index index.php /_route.php;
try_files $uri $uri/ __PATH__/__PATH__/_route.php?$query_string;
location ~ \.php$ {