parent
16d813da90
commit
0f091d1968
|
@ -1,5 +1,3 @@
|
|||
try_files $uri =404;
|
||||
|
||||
# default fastcgi_params
|
||||
include fastcgi_params;
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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><!--
|
||||
|
||||
|
|
Loading…
Reference in New Issue