diff --git a/conf/nginx.conf b/conf/nginx.conf index 0cf3732..87af245 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -90,7 +90,9 @@ location ^~ __PATH__/ { # Avoid sending the security headers twice fastcgi_param modHeadersAvailable true; # 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_intercept_errors on; fastcgi_request_buffering off; @@ -101,26 +103,6 @@ location ^~ __PATH__/ { 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 location ~ ^__PATH__/.+[^\/]\.(?:css|js|woff2?|svg|gif|map)$ { try_files $uri __PATH__/index.php$request_uri;