Welcome! Log In Create A New Profile


Multiple location definitions

Posted by tvpmb 
Multiple location definitions
August 30, 2012 04:13PM
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?

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 125
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready