https://bz.apache.org/bugzilla/show_bug.cgi?id=66596

            Bug ID: 66596
           Summary: Query parameter ($1) is not passed right, by an if
                    statement and a proxy pass.
           Product: Apache httpd-2
           Version: 2.4.41
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: lucas.hahm...@alta4.com
  Target Milestone: ---

Component: Core Feature

OS: Ubuntu 20.04.5 LTS (Focal Fossa)

Summary: 
Query parameter ($1) is not passed right, by an if statement and a proxy pass.


Description:
We have a virtual host with the name "jira.alta4.com". This config was cut,
full config at the end:

<VirtualHost *:443>
  ServerName some.url

 <If "%{REMOTE_ADDR} != '192.168.4.9'">
       RewriteEngine On
       RewriteRule ^/?(.*) https://some.external.url/$1 [R=permanent,L]
 </If>

  ProxyPass             /       http://some.internal.system:8080/
  ProxyPassReverse      /       http://some.internal.system:8080/

</VirtualHost>

If a request coming from one specific IP Adress, we want to ProxyPass it. All
other requests must be routed to an external address.

When i run this config, the value of $1 is set to
/proxy:http://some.internal.system:8080/ and not to the original query "/test".

Server built:   2022-06-14T13:30:55

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to