Created
October 28, 2019 19:19
-
-
Save barryhughes/cbf119d260a62533420964d94a5e17dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location / { | |
- rewrite ^ /index.php$request_uri; | |
+ rewrite ^ /index.php; | |
} | |
location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/) { | |
fastcgi_split_path_info ^(.+?\.php)(\/.*|)$; | |
+ try_files $fastcgi_script_name =404; | |
include fastcgi_params; | |
fastcgi_param SCRIPTFILENAME $document_root$fastcgi_script_name; | |
fastcgi_param PATHINFO $path_info; | |
fastcgi_param HTTPS on; | |
# Avoid sending the security headers twice | |
fastcgi_param modHeadersAvailable true; | |
# Enable pretty urls | |
fastcgi_param front_controller_active true; | |
fastcgi_pass php-handler; | |
fastcgi_intercept_errors on; | |
fastcgi_request_buffering off; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment