How to resolve this ?!

Discussion in 'Apache' started by rfocus, Feb 18, 2015.

  1. #1
    I have a problem with proxypass via Apache web server !

    Here is a httpd config :

    ProxyPass /test http://127.0.0.1:82/limit.php?ch=conn-test01&package=test nocanon max=100 ttl=12 retry=0
    <Location /test>
    </Location>
    
    Code (markup):
    When I open link on browser example
    http://127.0.0.1:8080/test
    Code (markup):
    is working good but when I add link with "?" I get Page Not Found
    http://127.0.0.1:8080/test?something
    Code (markup):
    How to resolve that to have proxypass in both way with "?" and without it ?!
     
    rfocus, Feb 18, 2015 IP
  2. billzo

    billzo Well-Known Member

    Messages:
    961
    Likes Received:
    278
    Best Answers:
    15
    Trophy Points:
    113
    #2
    Is this your problem?

    http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

    ProxyPass Directive

    Anything following the question mark (?) is a query string.
     
    billzo, Feb 18, 2015 IP
  3. rfocus

    rfocus Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Yes problem is with (?) but when I remove nocanon from proxypass that working but not passing link like
    http://127.0.0.1:82/limit.php?ch=conn-test01&package=test
    Code (markup):
    http://127.0.0.1:82/limit.php?ch=conn-test01&package=test
    Code (markup):
    just can work with link
    http://127.0.0.1:82/limit.php
    Code (markup):
    Any solutions for this problem ?
     
    rfocus, Feb 18, 2015 IP