Bug 66596 - Query parameter ($1) is not passed right, by an if statement and a proxy pass.
Summary: Query parameter ($1) is not passed right, by an if statement and a proxy pass.
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.41
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-10 08:18 UTC by Lucas Hahmann
Modified: 2023-05-10 08:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Hahmann 2023-05-10 08:18:37 UTC
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