php try_files fix

#fixes #44
This commit is contained in:
Szekeres Bálint
2018-12-02 19:57:35 +01:00
parent 16d813da90
commit 0f091d1968
3 changed files with 5 additions and 3 deletions

View File

@@ -1,5 +1,3 @@
try_files $uri =404;
# default fastcgi_params
include fastcgi_params;

View File

@@ -1,5 +1,6 @@
# WordPress: allow TinyMCE
location = /wp-includes/js/tinymce/wp-tinymce.php {
try_files $uri =404;
include nginxconfig.io/php_fastcgi.conf;
}
@@ -31,5 +32,6 @@ location ~* ^/(?:xmlrpc\.php|wp-links-opml\.php|wp-config\.php|wp-config-sample\
# WordPress: throttle wp-login.php
location = /wp-login.php {
limit_req zone=login burst=2 nodelay;
try_files $uri =404;
include nginxconfig.io/php_fastcgi.conf;
}</span>