<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Preparing for Large-scale Wordpress MU Usage</title>
<description>I'm preparing to deploy a new Nginx server hosting Wordpress MU to our school. Each wordpress site will serve as a student ePortfolio. I'm concerned about when all 500 students hit the site and start editing at the same time. The particulars of my setup are below. What can I expect/do to prepare for the mass hit of users on my site?

I am running Wordpress Quick Cache, &amp;amp; apc (for php caching).


The Server:

OS: Ubuntu Linux 12.04 LTS
Web server: Nginx (naturally)
PHP: php5-fpm
RAM 16 GB
CPUs: 2 CPUs with 4 cores each (total of 8 cores).

My nginx.conf file:

---

user www-data;
worker_processes 8;
pid /var/run/nginx.pid;

events {
worker_connections 2048;
# multi_accept on;
}

http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
server_tokens off;
include mime.types;
default_type application/octet-stream;
index index.php index.htm index.html redirect.php;

client_max_body_size 512M;

#Gzip
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 64 32k;
gzip_http_version 1.1;
gzip_disable &amp;quot;MSIE [1-6].(?!.*SV1)&amp;quot;;
gzip_types text/plain text/css application/json application/x-javascript text/xml
application/xml application/xml+rss text/javascript;

#FastCGI
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort on;
fastcgi_buffers 32 64k;
fastcgi_buffer_size 256k;
fastcgi_read_timeout 500;
fastcgi_index index.php;

limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;

##
# Virtual Host Configs
##

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*; #Our individual site vhost server files will live here
}

---

My site file:

---
server {
listen 80;

server_name students.scisdragons.net;
root /var/www/students.scisdragons.net;
access_log /var/log/nginx/students.scisdragons.net.access.log;
error_log /var/log/nginx/students.scisdragons.net.error.log;

include global/wordpress-ms-subdir.conf;



location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 1y;
log_not_found off;
}

}

---

And my Wordpress Config file

---
location / {
try_files $uri $uri/ /index.php?$args;
}


location /phpmyadmin {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
# Zero-day exploit defense.
# http://forum.nginx.org/read.php?2,88845,page=3
# Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.
# Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.
try_files $uri =404;

fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_intercept_errors on;
fastcgi_pass 127.0.0.1:9000;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/;
}
}
location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}


# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;

# Directives to send expires headers and turn off 404 error logging.
location ~* \.(js|css|png|jpg|jpeg|gif|ico|mov|mp4|avi|doc|docx|pdf)$ {
expires 48h;
log_not_found off;
}

# Pass uploaded files to wp-includes/ms-files.php.
rewrite /files/$ /index.php last;

# For multisite: Use a caching plugin/script that creates symlinks to the correct subdirectory structure to get some performance gains.
set $cachetest &amp;quot;$document_root/wp-content/cache/ms-filemap/${host}${uri}&amp;quot;;
if ($uri ~ /$) {
set $cachetest &amp;quot;&amp;quot;;
}
if (-f $cachetest) {
# Rewrites the URI and stops rewrite processing so it doesn't start over and attempt to pass it to the next rule.
rewrite ^ /wp-content/cache/ms-filemap/${host}${uri} break;
}

if ($uri !~ wp-content/plugins) {
rewrite /files/(.+)$ /wp-includes/ms-files.php?file=$1 last;
}

# Uncomment one of the lines below for the appropriate caching plugin (if used).
# include global/wordpress-ms-subdir-wp-super-cache.conf;
# include global/wordpress-ms-subdir-w3-total-cache.conf;

# Rewrite multisite '.../wp-.*' and '.../*.php'.
if (!-e $request_filename) {
rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
}

# Pass all .php files onto a php-fpm/php-fcgi server.
location ~ \.php$ {
# Zero-day exploit defense.
# http://forum.nginx.org/read.php?2,88845,page=3
# Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.
# Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.
try_files $uri =404;

fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_intercept_errors on;
fastcgi_pass 127.0.0.1:9000;
}

---</description><link>http://forum.nginx.org/read.php?2,226786,226786#msg-226786</link><lastBuildDate>Wed, 22 May 2013 15:11:52 -0400</lastBuildDate>
<generator>Phorum 5.2.16</generator>
<item>
<guid>http://forum.nginx.org/read.php?2,226786,226816#msg-226816</guid>
<title>Re: Preparing for Large-scale Wordpress MU Usage</title><link>http://forum.nginx.org/read.php?2,226786,226816#msg-226816</link><description><![CDATA[Also visitors really isn't the problem, its EDITORS. 500 users posting content simultaneously will be the problem.]]></description>
<dc:creator>CheezItMan</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Thu, 24 May 2012 22:19:08 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,226786,226815#msg-226815</guid>
<title>Re: Preparing for Large-scale Wordpress MU Usage</title><link>http://forum.nginx.org/read.php?2,226786,226815#msg-226815</link><description><![CDATA[Thanks for the reply. I'm running Quick cache, but bliz.io still reports failed connections at 250 and 500 users. I'll try supercache, it previously didn't really help multisite (except the root of the multisite).<br /><br />The new version of Supercache does seem to work better. However running blitz.io with 1000 people connecting I still get 100 or so timeouts and a few errors. Granted it's 100 or so timeouts out of several thousand but still....<br /><br />W-Mark Kubacki Wrote:<br />-------------------------------------------------------<br />&gt; Hi &quot;CheezItMan&quot;,<br />&gt;<br />&gt; 500 users are not much, except you're running<br />&gt; everything from a tiny<br />&gt; ARM-powered machine. Come to think of it, even<br />&gt; that will suffice. ;-)<br />&gt;<br />&gt; Make sure to install a static-site generator for<br />&gt; Wordpress, &quot;WP Super<br />&gt; Cache Plus&quot; for example (perhaps your &quot;ms-file&quot;<br />&gt; cache already does<br />&gt; that; didn't look into it). Then it will be Nginx<br />&gt; serving static files<br />&gt; most of the time. Gzip_static module for Nginx<br />&gt; helps, too, provided<br />&gt; your caching-plugin generates *.gz files along<br />&gt; with the uncompressed<br />&gt; ones.<br />&gt;]]></description>
<dc:creator>CheezItMan</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Thu, 24 May 2012 20:14:07 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,226786,226812#msg-226812</guid>
<title>Re: Preparing for Large-scale Wordpress MU Usage</title><link>http://forum.nginx.org/read.php?2,226786,226812#msg-226812</link><description><![CDATA[Hi &quot;CheezItMan&quot;,<br /><br />500 users are not much, except you're running everything from a tiny<br />ARM-powered machine. Come to think of it, even that will suffice. ;-)<br /><br />Make sure to install a static-site generator for Wordpress, &quot;WP Super<br />Cache Plus&quot; for example (perhaps your &quot;ms-file&quot; cache already does<br />that; didn't look into it). Then it will be Nginx serving static files<br />most of the time. Gzip_static module for Nginx helps, too, provided<br />your caching-plugin generates *.gz files along with the uncompressed<br />ones.<br /><br />A mediocre MySQL installation can bear some thousands inserts per<br />second. So you will most probably run out of available PHP workers.<br />Configure a reasonable high number of &quot;spare server&quot; in PHP FPM and<br />observe the load and memory usage, tune, observe and so forth.<br /><br />--<br />Mark<br /><br />2012/5/24 CheezItMan &lt;nginx-forum@nginx.us&gt;:<br />&gt; I'm preparing to deploy a new Nginx server hosting Wordpress MU to our<br />&gt; school.  Each wordpress site will serve as a student ePortfolio.  I'm<br />&gt; concerned about when all 500 students hit the site and start editing at<br />&gt; the same time.  The particulars of my setup are below.  What can I<br />&gt; expect/do to prepare for the mass hit of users on my site?<br />&gt;<br />&gt; I am running Wordpress Quick Cache, &amp; apc (for php caching).<br />&gt;<br />&gt;<br />&gt; The Server:<br />&gt;<br />&gt; OS:  Ubuntu Linux 12.04 LTS<br />&gt; Web server:  Nginx (naturally)<br />&gt; PHP:  php5-fpm<br />&gt; RAM 16 GB<br />&gt; CPUs:  2 CPUs with 4 cores each (total of 8 cores).<br />&gt;<br />&gt; My nginx.conf file:<br />&gt;<br />&gt; ---<br />&gt;<br />&gt; user www-data;<br />&gt; worker_processes 8;<br />&gt; pid /var/run/nginx.pid;<br />&gt;<br />&gt; events {<br />&gt;    worker_connections 2048;<br />&gt;    # multi_accept on;<br />&gt; }<br />&gt;<br />&gt; http {<br />&gt;    sendfile on;<br />&gt;    tcp_nopush on;<br />&gt;    tcp_nodelay on;<br />&gt;    server_tokens off;<br />&gt;    include mime.types;<br />&gt;    default_type  application/octet-stream;<br />&gt;    index index.php index.htm index.html redirect.php;<br />&gt;<br />&gt;        client_max_body_size 512M;<br />&gt;<br />&gt;    #Gzip<br />&gt;    gzip  on;<br />&gt;    gzip_vary on;<br />&gt;    gzip_proxied any;<br />&gt;    gzip_comp_level 6;<br />&gt;    gzip_buffers 64 32k;<br />&gt;    gzip_http_version 1.1;<br />&gt;    gzip_disable &quot;MSIE [1-6].(?!.*SV1)&quot;;<br />&gt;    gzip_types text/plain text/css application/json<br />&gt; application/x-javascript text/xml<br />&gt;                        application/xml application/xml+rss<br />&gt; text/javascript;<br />&gt;<br />&gt;    #FastCGI<br />&gt;    fastcgi_intercept_errors on;<br />&gt;    fastcgi_ignore_client_abort on;<br />&gt;    fastcgi_buffers 32 64k;<br />&gt;    fastcgi_buffer_size 256k;<br />&gt;    fastcgi_read_timeout 500;<br />&gt;    fastcgi_index  index.php;<br />&gt;<br />&gt;    limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;<br />&gt;<br />&gt;    ##<br />&gt;    # Virtual Host Configs<br />&gt;    ##<br />&gt;<br />&gt;    include /etc/nginx/conf.d/*.conf;<br />&gt;    include /etc/nginx/sites-enabled/*;  #Our individual site vhost<br />&gt; server files will live here<br />&gt; }<br />&gt;<br />&gt; ---<br />&gt;<br />&gt; My site file:<br />&gt;<br />&gt; ---<br />&gt; server {<br />&gt;    listen 80;<br />&gt;<br />&gt;    server_name students.scisdragons.net;<br />&gt;    root /var/www/students.scisdragons.net;<br />&gt;    access_log /var/log/nginx/students.scisdragons.net.access.log;<br />&gt;    error_log /var/log/nginx/students.scisdragons.net.error.log;<br />&gt;<br />&gt;        include global/wordpress-ms-subdir.conf;<br />&gt;<br />&gt;<br />&gt;<br />&gt;        location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {<br />&gt;                expires 1y;<br />&gt;        log_not_found off;<br />&gt;        }<br />&gt;<br />&gt; }<br />&gt;<br />&gt; ---<br />&gt;<br />&gt; And my Wordpress Config file<br />&gt;<br />&gt; ---<br />&gt; location / {<br />&gt;        try_files $uri $uri/ /index.php?$args;<br />&gt; }<br />&gt;<br />&gt;<br />&gt; location /phpmyadmin {<br />&gt;               root /usr/share/;<br />&gt;               index index.php index.html index.htm;<br />&gt;               location ~ ^/phpmyadmin/(.+\.php)$ {<br />&gt;                        # Zero-day exploit defense.<br />&gt;                        #<br />&gt; http://forum.nginx.org/read.php?2,88845,page=3<br />&gt;                        # Won't work properly (404 error) if the file is<br />&gt; not stored on this server, which is entirely possible with<br />&gt; php-fpm/php-fcgi.<br />&gt;                        # Comment the 'try_files' line out if you set up<br />&gt; php-fpm/php-fcgi on another machine.  And then cross your fingers that<br />&gt; you won't get hacked.<br />&gt;                        try_files $uri =404;<br />&gt;<br />&gt;                        fastcgi_split_path_info ^(.+\.php)(/.+)$;<br />&gt;                        include fastcgi_params;<br />&gt;                        fastcgi_index index.php;<br />&gt;                        fastcgi_param SCRIPT_FILENAME<br />&gt; $document_root$fastcgi_script_name;<br />&gt;                        #       fastcgi_intercept_errors on;<br />&gt;                        fastcgi_pass 127.0.0.1:9000;<br />&gt;               }<br />&gt;               location ~*<br />&gt; ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {<br />&gt;                       root /usr/share/;<br />&gt;               }<br />&gt;        }<br />&gt;        location /phpMyAdmin {<br />&gt;               rewrite ^/* /phpmyadmin last;<br />&gt;        }<br />&gt;<br />&gt;<br />&gt; # Add trailing slash to */wp-admin requests.<br />&gt; rewrite /wp-admin$ $scheme://$host$uri/ permanent;<br />&gt;<br />&gt; # Directives to send expires headers and turn off 404 error logging.<br />&gt; location ~* \.(js|css|png|jpg|jpeg|gif|ico|mov|mp4|avi|doc|docx|pdf)$ {<br />&gt;        expires 48h;<br />&gt;        log_not_found off;<br />&gt; }<br />&gt;<br />&gt; # Pass uploaded files to wp-includes/ms-files.php.<br />&gt; rewrite /files/$ /index.php last;<br />&gt;<br />&gt; # For multisite:  Use a caching plugin/script that creates symlinks to<br />&gt; the correct subdirectory structure to get some performance gains.<br />&gt; set $cachetest<br />&gt; &quot;$document_root/wp-content/cache/ms-filemap/${host}${uri}&quot;;<br />&gt; if ($uri ~ /$) {<br />&gt;        set $cachetest &quot;&quot;;<br />&gt; }<br />&gt; if (-f $cachetest) {<br />&gt;        # Rewrites the URI and stops rewrite processing so it doesn't<br />&gt; start over and attempt to pass it to the next rule.<br />&gt;        rewrite ^ /wp-content/cache/ms-filemap/${host}${uri} break;<br />&gt; }<br />&gt;<br />&gt; if ($uri !~ wp-content/plugins) {<br />&gt;        rewrite /files/(.+)$ /wp-includes/ms-files.php?file=$1 last;<br />&gt; }<br />&gt;<br />&gt; # Uncomment one of the lines below for the appropriate caching plugin<br />&gt; (if used).<br />&gt; # include global/wordpress-ms-subdir-wp-super-cache.conf;<br />&gt; # include global/wordpress-ms-subdir-w3-total-cache.conf;<br />&gt;<br />&gt; # Rewrite multisite '.../wp-.*' and '.../*.php'.<br />&gt; if (!-e $request_filename) {<br />&gt;        rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;<br />&gt;        rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;<br />&gt; }<br />&gt;<br />&gt; # Pass all .php files onto a php-fpm/php-fcgi server.<br />&gt; location ~ \.php$ {<br />&gt;        # Zero-day exploit defense.<br />&gt;        # http://forum.nginx.org/read.php?2,88845,page=3<br />&gt;        # Won't work properly (404 error) if the file is not stored on<br />&gt; this server, which is entirely possible with php-fpm/php-fcgi.<br />&gt;        # Comment the 'try_files' line out if you set up<br />&gt; php-fpm/php-fcgi on another machine.  And then cross your fingers that<br />&gt; you won't get hacked.<br />&gt;        try_files $uri =404;<br />&gt;<br />&gt;        fastcgi_split_path_info ^(.+\.php)(/.+)$;<br />&gt;        include fastcgi_params;<br />&gt;        fastcgi_index index.php;<br />&gt;        fastcgi_param SCRIPT_FILENAME<br />&gt; $document_root$fastcgi_script_name;<br />&gt; #       fastcgi_intercept_errors on;<br />&gt;        fastcgi_pass 127.0.0.1:9000;<br />&gt; }<br />&gt;<br />&gt; ---<br />&gt;<br />&gt; Posted at Nginx Forum: http://forum.nginx.org/read.php?2,226786,226786#msg-226786<br />&gt;<br />&gt; _______________________________________________<br />&gt; nginx mailing list<br />&gt; nginx@nginx.org<br />&gt; http://mailman.nginx.org/mailman/listinfo/nginx<br /><br />_______________________________________________<br />nginx mailing list<br />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>W-Mark Kubacki</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Thu, 24 May 2012 17:16:01 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,226786,226786#msg-226786</guid>
<title>Preparing for Large-scale Wordpress MU Usage</title><link>http://forum.nginx.org/read.php?2,226786,226786#msg-226786</link><description><![CDATA[I'm preparing to deploy a new Nginx server hosting Wordpress MU to our school. Each wordpress site will serve as a student ePortfolio. I'm concerned about when all 500 students hit the site and start editing at the same time. The particulars of my setup are below. What can I expect/do to prepare for the mass hit of users on my site?<br /><br />I am running Wordpress Quick Cache, &amp; apc (for php caching).<br /><br /><br />The Server:<br /><br />OS: Ubuntu Linux 12.04 LTS<br />Web server: Nginx (naturally)<br />PHP: php5-fpm<br />RAM 16 GB<br />CPUs: 2 CPUs with 4 cores each (total of 8 cores).<br /><br />My nginx.conf file:<br /><br />---<br /><br />user www-data;<br />worker_processes 8;<br />pid /var/run/nginx.pid;<br /><br />events {<br />worker_connections 2048;<br /># multi_accept on;<br />}<br /><br />http {<br />sendfile on;<br />tcp_nopush on;<br />tcp_nodelay on;<br />server_tokens off;<br />include mime.types;<br />default_type application/octet-stream;<br />index index.php index.htm index.html redirect.php;<br /><br />client_max_body_size 512M;<br /><br />#Gzip<br />gzip on;<br />gzip_vary on;<br />gzip_proxied any;<br />gzip_comp_level 6;<br />gzip_buffers 64 32k;<br />gzip_http_version 1.1;<br />gzip_disable &quot;MSIE [1-6].(?!.*SV1)&quot;;<br />gzip_types text/plain text/css application/json application/x-javascript text/xml<br />application/xml application/xml+rss text/javascript;<br /><br />#FastCGI<br />fastcgi_intercept_errors on;<br />fastcgi_ignore_client_abort on;<br />fastcgi_buffers 32 64k;<br />fastcgi_buffer_size 256k;<br />fastcgi_read_timeout 500;<br />fastcgi_index index.php;<br /><br />limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;<br /><br />##<br /># Virtual Host Configs<br />##<br /><br />include /etc/nginx/conf.d/*.conf;<br />include /etc/nginx/sites-enabled/*; #Our individual site vhost server files will live here<br />}<br /><br />---<br /><br />My site file:<br /><br />---<br />server {<br />listen 80;<br /><br />server_name students.scisdragons.net;<br />root /var/www/students.scisdragons.net;<br />access_log /var/log/nginx/students.scisdragons.net.access.log;<br />error_log /var/log/nginx/students.scisdragons.net.error.log;<br /><br />include global/wordpress-ms-subdir.conf;<br /><br /><br /><br />location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {<br />expires 1y;<br />log_not_found off;<br />}<br /><br />}<br /><br />---<br /><br />And my Wordpress Config file<br /><br />---<br />location / {<br />try_files $uri $uri/ /index.php?$args;<br />}<br /><br /><br />location /phpmyadmin {<br />root /usr/share/;<br />index index.php index.html index.htm;<br />location ~ ^/phpmyadmin/(.+\.php)$ {<br /># Zero-day exploit defense.<br /># http://forum.nginx.org/read.php?2,88845,page=3<br /># Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.<br /># Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.<br />try_files $uri =404;<br /><br />fastcgi_split_path_info ^(.+\.php)(/.+)$;<br />include fastcgi_params;<br />fastcgi_index index.php;<br />fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br /># fastcgi_intercept_errors on;<br />fastcgi_pass 127.0.0.1:9000;<br />}<br />location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {<br />root /usr/share/;<br />}<br />}<br />location /phpMyAdmin {<br />rewrite ^/* /phpmyadmin last;<br />}<br /><br /><br /># Add trailing slash to */wp-admin requests.<br />rewrite /wp-admin$ $scheme://$host$uri/ permanent;<br /><br /># Directives to send expires headers and turn off 404 error logging.<br />location ~* \.(js|css|png|jpg|jpeg|gif|ico|mov|mp4|avi|doc|docx|pdf)$ {<br />expires 48h;<br />log_not_found off;<br />}<br /><br /># Pass uploaded files to wp-includes/ms-files.php.<br />rewrite /files/$ /index.php last;<br /><br /># For multisite: Use a caching plugin/script that creates symlinks to the correct subdirectory structure to get some performance gains.<br />set $cachetest &quot;$document_root/wp-content/cache/ms-filemap/${host}${uri}&quot;;<br />if ($uri ~ /$) {<br />set $cachetest &quot;&quot;;<br />}<br />if (-f $cachetest) {<br /># Rewrites the URI and stops rewrite processing so it doesn't start over and attempt to pass it to the next rule.<br />rewrite ^ /wp-content/cache/ms-filemap/${host}${uri} break;<br />}<br /><br />if ($uri !~ wp-content/plugins) {<br />rewrite /files/(.+)$ /wp-includes/ms-files.php?file=$1 last;<br />}<br /><br /># Uncomment one of the lines below for the appropriate caching plugin (if used).<br /># include global/wordpress-ms-subdir-wp-super-cache.conf;<br /># include global/wordpress-ms-subdir-w3-total-cache.conf;<br /><br /># Rewrite multisite '.../wp-.*' and '.../*.php'.<br />if (!-e $request_filename) {<br />rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;<br />rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;<br />}<br /><br /># Pass all .php files onto a php-fpm/php-fcgi server.<br />location ~ \.php$ {<br /># Zero-day exploit defense.<br /># http://forum.nginx.org/read.php?2,88845,page=3<br /># Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.<br /># Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.<br />try_files $uri =404;<br /><br />fastcgi_split_path_info ^(.+\.php)(/.+)$;<br />include fastcgi_params;<br />fastcgi_index index.php;<br />fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br /># fastcgi_intercept_errors on;<br />fastcgi_pass 127.0.0.1:9000;<br />}<br /><br />---]]></description>
<dc:creator>CheezItMan</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Thu, 24 May 2012 05:16:38 -0400</pubDate></item>
</channel>
</rss>