Forum Moderators: phranque

Message Too Old, No Replies

"?" symbol in the URL for ProxyPass

         

dhryvastov

1:36 pm on Aug 19, 2011 (gmt 0)

10+ Year Member



Hello -

I am trying to use Apache Server as a proxy server for my applications.
I try to make the following mappings:
ProxyPass /test/pass1/ [localhost:80 ]
ProxyPass /test/pass2/ [localhost:8085 ]

I have two apps running under Jboss and IIS.

The second mapping is working perfectly. The first one shows me 404 error.

Does anybody know, is it because of "?" symbol at the end of the URL? If I try any other URL - it works fine. Are there any solutions for this case?

Any help is greatly appreciated.

Thanks in advance,
Denys

lucy24

8:02 pm on Aug 19, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



? was created mainly to confuse you. In situations using Regular Expressions, it has entirely different meanings depending on where you put it. But here the final / may be what's causing the problem.

:: detour to ProxyPass rules [httpd.apache.org] from the horse's mouth ::

If the first argument ends with a trailing /, the second argument should also end with a trailing / and vice versa. Otherwise the resulting requests to the backend may miss some needed slashes and do not deliver the expected results.