php try_files fix

#fixes #44
pull/50/head
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>

View File

@ -73,12 +73,14 @@ server {<!--
✔ PHP --><span ng-if="isPHP()">
# handle .php
location ~ \.php$ {<!--
location ~ \.php$ {
try_files $uri =404;<!--
✔ modularized || ✔ WordPress --><span ng-if="isModularized() || isWordPress()">
include nginxconfig.io/php_fastcgi.conf;</span><!--
✔ unified && ✘ WordPress --><span ng-if="isUnified() && !isWordPress()">
<ng-include ng-include-tabs="{{ isUnified() ? 3 : 1 }}" src="'templates/conf/nginxconfig.io/php_fastcgi.conf.html?v=COMMIT_HASH'" onload="refreshHighlighting()"></ng-include></span>
}</span><!--