[I just posted this on the WP Forums, too, before anyone starts Googling and saying that this is posted somewhere else]
I'm hoping this isn't a duplicate, but I've been searching here and Googling and I haven't been able to find anything.
I'm currently running a web server that constitutes nginx as both a front-end proxy to a LAMP stack and the web server for static sites. I'm working on some development for a site that will be powered by WP.
Currently, mysite.com is served up by nginx as a static site. The WP install will be served out of a subfolder, mysite.com/sub. The document root for the nginx server (the static files) and the document root for the Apache server (all dynamic content, and also where the WP files are currently installed) are NOT the same directory. I want to install WP in mysite.com/sub so that only this subdirectory is powered by WP while completely ignoring the root of my site but all of the articles I have read discuss using WP to power the root while simply installing the files elsewhere.
It took me forever to write all the correct proxy passing rules in my nginx configuration just to make the installation happen properly, and that is all good and well, but WordPress is operating out of mysite.com instead of mysite.com/sub and I'm not 100% sure what the easiest way to fix this is, since mysite.com isn't powered by Apache and so there are no PHP or .htaccess files to tinker with in the root of that directory.
I realize that this is sort of rambling and difficult to explain, I'll be happy to provide answer to any questions for anyone that thinks they can point me down the right path.
I would prefer to use this structure instead of using a subdomain, so if anyone out there has any suggestions I'd really appreciate it.