Hi there,
Does anyone have an optimized config for Wordpress MU with subdomain
support?
There are a lot of conflicting configs on the wordpress forums and I
could not find one on the Nginx Wiki - hence the request.
Thanks in advance!
Regards,
Shri
Shri @ DevLib.Org wrote:
Hi there,
Does anyone have an optimized config for Wordpress MU with subdomain
support?
I use the config at
http://lumanau.web.id/2008/11/27/nginx-rewrite-rules-for-wordpressmu-with-wp-super-cache-plugin-enabled.html
for MU with supercache. It seems to work. I may switch to Varnish or
nginx fastcgi cache and then the rewrites are pretty trivial. If I
recall correctly the rewrites are the same for subdomain or subdirectory
configuration. It’s a matter of a config setting in MU and a wildcard
DNS entry.
Note these are not “optimized” in that they contain lots of “if”
statements and Igor would probably cringe…
There are a lot of conflicting configs on the wordpress forums and I
could not find one on the Nginx Wiki - hence the request.
Thanks in advance!
Regards,
Shri
Jim
Also the line breaks are from my mail client truncating… I have it
all one line, but I don’t think it matters for nginx.
I recently setup wordpress with supercache like so:
location / {
try_files $uri
/wp-content/cache/supercache/$http_host/$uriindex.html $uri/
/index.php?q=$uri;
}
I believe this is an Igor-cringing-from-too-many-ifs-less
configuration, but I do not guarantee the lack of any cringes
whatsoever :P.
Merlin, how does that config account for visitors with logged in
wordpress user cookies?
With Supercache these users should not be directed to the supercached
files: