WP-FFPC Nginx Helper WordPress MU domain mapping
-
Hi,
I’m experiencing a problem after upgrade my network to WP-FFPC Nginx suggested configuration.
Below my merged configuration, it works fine to normal subdomain configuration but not to mapped domain.
I think to have solved but I need a fix!
Nginx Helper needs map section like this:
map $http_host $blogid { default 1; include /var/www/staging.server/staging.example.com/http/wordpress/wp-content/uploads/nginx-helper/map.conf; }
WP-FFPC needs location / section like this:
location / { try_files $uri $uri/ @memcached; }
I need to change something here?
WP-FFPC needs location @memcached section like this:
location @memcached { default_type text/html; set $memcached_key data-$scheme://$host$request_uri; set $memcached_request 1; # exceptions # avoid cache serve of POST requests if ($request_method = POST ) { set $memcached_request 0;
I think this line needs a fix (from plugin code):
set $memcached_key data-$scheme://$host$request_uri;Note: Supercache has a section linke this (my previous configuration, It works fine!):
location / { try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php ; }
I’ve solve this adding in server_name a mapped url like:
server_name staging.example.com *.stging.example.com staging.domainA.com staging.domainB.com;
This is a workaround, not a fix!I prefer use Nginx-helper feature without modify nginx configuration every time!
Take a look here
Thank you for your support
D
- The topic ‘WP-FFPC Nginx Helper WordPress MU domain mapping’ is closed to new replies.