apache - Is Apache2 (HTTPD) Location tag a wildcard match? -


good news i've solved problem, bad news don't understand issue!

url: http://host:port/a/b 

httpd.conf

<location /a>  proxypass server.... </location>  <location /b>  proxypass other server </location> 

in setup, request http://.../a/b takes me "some other server" instead of expected "server"

i able expected behavior forcing more "regex-y" behavior, , using starts expression (aka:

<location ~ "^/a">  proxypass server.... </location> 

if that's how have it, that's fine. docs seemed rather unclear on situation.

documentation sources: httpd docs on location tag http://httpd.apache.org/docs/2.0/mod/core.html#location seem imply location matching in non-regex manner (aka, no ~) not use wildcards (that's why have section explaining how use wildcards , regexs). slash discussion @ end doesn't imply uses wildcards either.

so, i'm left assume i've uncovered bug in version of apache. or maybe use similar of url structures , can't understand apache docs. me, stackoverflow!

if refer apache docs, states that

regular expressions can used, addition of ~ character. example:

<location ~ "/(extra|special)/data">

would match urls contained substring /extra/data or /special/data.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -