So I've been having a real hell of a time trying to get my nginx install working correctly. Here's my setup:
I have several areas of my website that get accessed via specific urls. The problem is, I also have an over-arching rule that says if there is no match redirect it to a main index.php file, which loads the appropriate wordpress url.
/ = main website (physical location: /www/domain.com/www/)
/p/* = photo gallery (physical location: /www/domain.com/photos/)
/v/* = video gallery (physical location: /www/domain.com/videos/)
/assets/* = css, jpg, js, etc... (physical location: /www/domain.com/assets/)
Basically what's happening is the /p/ location, never gets triggered because the main website's route always gets triggered. This is probably because the main website needs to have routes like /privacy.
I've read several tutorials on how to handle ordering, etc., for some reason I'm not able to get the right combination of location directives/ordering of those directives.
Can someone help me with this?
Thanks!