mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Disable pretty urls
This commit is contained in:
parent
895f9951b2
commit
7eeb87cfbd
1 changed files with 3 additions and 21 deletions
|
@ -90,7 +90,9 @@ location ^~ __PATH__/ {
|
||||||
# Avoid sending the security headers twice
|
# Avoid sending the security headers twice
|
||||||
fastcgi_param modHeadersAvailable true;
|
fastcgi_param modHeadersAvailable true;
|
||||||
# Enable pretty urls
|
# Enable pretty urls
|
||||||
fastcgi_param front_controller_active true;
|
# Do not enable pretty urls because it break a lot of apps
|
||||||
|
# To make it works, we must change "alias" into "root", which creates another set of problems.
|
||||||
|
#fastcgi_param front_controller_active true;
|
||||||
fastcgi_pass unix:/var/run/php/php__YNH_PHP_VERSION__-fpm-__NAME__.sock;
|
fastcgi_pass unix:/var/run/php/php__YNH_PHP_VERSION__-fpm-__NAME__.sock;
|
||||||
fastcgi_intercept_errors on;
|
fastcgi_intercept_errors on;
|
||||||
fastcgi_request_buffering off;
|
fastcgi_request_buffering off;
|
||||||
|
@ -101,26 +103,6 @@ location ^~ __PATH__/ {
|
||||||
index index.php;
|
index index.php;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = __PATH__/core/js/oc.js {
|
|
||||||
rewrite ^ __PATH__/index.php$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
location = __PATH__/core/preview.png {
|
|
||||||
rewrite ^ __PATH__/index.php$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* ^__PATH__/(?:css|js)/ {
|
|
||||||
rewrite ^ __PATH__/index.php$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* ^__PATH__/apps/theming/img/core/filetypes/ {
|
|
||||||
rewrite ^ __PATH__/index.php$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* ^__PATH__/apps/documentserver_community/ {
|
|
||||||
rewrite ^ __PATH__/index.php$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Adding the cache control header for js, css and map files
|
# Adding the cache control header for js, css and map files
|
||||||
location ~ ^__PATH__/.+[^\/]\.(?:css|js|woff2?|svg|gif|map)$ {
|
location ~ ^__PATH__/.+[^\/]\.(?:css|js|woff2?|svg|gif|map)$ {
|
||||||
try_files $uri __PATH__/index.php$request_uri;
|
try_files $uri __PATH__/index.php$request_uri;
|
||||||
|
|
Loading…
Add table
Reference in a new issue