Browse Source

fix 405 error

pull/354/head
Kay0u 5 years ago
parent
commit
00b04039ea
No known key found for this signature in database GPG Key ID: AAFEEB16CFA2AE2D
  1. 6
      conf/nginx.conf

6
conf/nginx.conf

@ -121,6 +121,12 @@ location ^~ __PATH__/ {
}
location ~ / {
if ($request_method ~ ^PUT$) {
rewrite ^ __PATH__/index.php$request_uri last;
}
if ($request_method ~ ^DELETE$) {
rewrite ^ __PATH__/index.php$request_uri last;
}
try_files $uri / __PATH__/index.php$request_uri;
}

Loading…
Cancel
Save