"X-Accel-Redirect" and Wordpress MU solution

Jeff Waugh jeff at robotparade.com.au
Fri Nov 27 12:09:14 MSK 2009


<quote who="rahul286">

> I am trying to get "X-Accel-Redirect" working on my ngnix and Wordpress MU
> server.
> 
> I came across this official wordpress thread -
> http://trac.mu.wordpress.org/changeset/1946
> 
> I followed it. I added codes in blogs.php. I also defined
> 'WPMU_ACCEL_REDIRECT' as 'true'.

G'day, from the author of that patch. :-)


Here's the relevant configuration snippet I use:

  location ^~ /blogs.dir {
    internal;
    alias  /srv/example.com/root/wp-content/blogs.dir;
  }

That's all you have to do -> an internal /blogs.dir location, aliased to the
real blogs.dir directory.

Enjoy!

- Jeff

-- 
Robot Parade                                  http://www.robotparade.com.au/
 
  m. +61 423 989 818     b. http://bethesignal.org/     p. +61 2 9043 2940  




More information about the nginx mailing list