mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-20 02:33:27 +08:00
@@ -1,5 +1,3 @@
|
|||||||
try_files $uri =404;
|
|
||||||
|
|
||||||
# default fastcgi_params
|
# default fastcgi_params
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
|
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
# WordPress: allow TinyMCE
|
# WordPress: allow TinyMCE
|
||||||
location = /wp-includes/js/tinymce/wp-tinymce.php {
|
location = /wp-includes/js/tinymce/wp-tinymce.php {
|
||||||
|
try_files $uri =404;
|
||||||
include nginxconfig.io/php_fastcgi.conf;
|
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
|
# WordPress: throttle wp-login.php
|
||||||
location = /wp-login.php {
|
location = /wp-login.php {
|
||||||
limit_req zone=login burst=2 nodelay;
|
limit_req zone=login burst=2 nodelay;
|
||||||
|
try_files $uri =404;
|
||||||
include nginxconfig.io/php_fastcgi.conf;
|
include nginxconfig.io/php_fastcgi.conf;
|
||||||
}</span>
|
}</span>
|
||||||
|
@@ -73,12 +73,14 @@ server {<!--
|
|||||||
✔ PHP --><span ng-if="isPHP()">
|
✔ PHP --><span ng-if="isPHP()">
|
||||||
|
|
||||||
# handle .php
|
# handle .php
|
||||||
location ~ \.php$ {<!--
|
location ~ \.php$ {
|
||||||
|
try_files $uri =404;<!--
|
||||||
|
|
||||||
✔ modularized || ✔ WordPress --><span ng-if="isModularized() || isWordPress()">
|
✔ modularized || ✔ WordPress --><span ng-if="isModularized() || isWordPress()">
|
||||||
include nginxconfig.io/php_fastcgi.conf;</span><!--
|
include nginxconfig.io/php_fastcgi.conf;</span><!--
|
||||||
|
|
||||||
✔ unified && ✘ WordPress --><span ng-if="isUnified() && !isWordPress()">
|
✔ 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>
|
<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><!--
|
}</span><!--
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user