Any Nginx experts out there? I’m trying to set up Nginx with FastCGI + WordPress. The trick is that I want WordPress served out of /blog but to store it in /wordpress. The root of is reverse proxied to another server.

I’ve posted the relevant bits of my server configuration in the first comment. If I go to a particular .php under /blog/wp-admin all is fine. If I go to /blog or /blog/index.php I end up on the reverse proxy (I presume /blog/index.php redirects to /blog/ for neater URLs). My guess is that for some reason URLs not ending in .php are not properly retried as redirects – maybe because I use a regexp location for /blog. But how can I otherwise strip the /blog part of the URL in a way that I can pass a full path to FastCGI?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.