Browse Source

fix nginx conf

pull/332/head
Kay0u 6 years ago
parent
commit
895f9951b2
No known key found for this signature in database GPG Key ID: AAFEEB16CFA2AE2D
  1. 6
      conf/nginx.conf

6
conf/nginx.conf

@ -78,8 +78,8 @@ location ^~ __PATH__/ {
deny all;
}
location ~ ^__PATH__/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy)\.php(\/.*|)$ {
fastcgi_split_path_info ^(.+?\.php)(/.*|)$;
location ~ ^__PATH__/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy)\.php(?:$|\/) {
fastcgi_split_path_info ^(.+?\.php)(\/.*|)$;
set $path_info $fastcgi_path_info;
try_files $fastcgi_script_name =404;
include fastcgi_params;
@ -139,7 +139,7 @@ location ^~ __PATH__/ {
access_log off;
}
location ~* \.(?:png|html|ttf|ico|jpg|jpeg|bcmap|mp4|webm)$ {
location ~ ^__PATH__/.+[^\/]\.(?:png|html|ttf|ico|jpg|jpeg|bcmap|mp4|webm)$ {
try_files $uri __PATH__/index.php$request_uri;
# Optional: Don't log access to other assets
access_log off;

Loading…
Cancel
Save