httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 57691] New: mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule
Date Thu, 12 Mar 2015 13:11:39 GMT

            Bug ID: 57691
           Summary: mod_proxy/proxy_util confuses UDS scheme with HTTP
                    scheme when using RewriteRule
           Product: Apache httpd-2
           Version: 2.4.12
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy

Problem: mod_proxy or proxy_util are confusing a fcgi with a http one

Scenario: The only scenario I have seen where that happens is when you proxy to
uds through mod_rewrite.


ProxyPassMatch ^(.+\.php)(/.+)?$
"unix:/opt/apache/httpd/logs/fpm/owncloud.sock|fcgi://localhost/var/www/" <--

In the same exact context (VirtualHost):
RewriteRule ^/(.+\.php)(/.+)?$
unix:/opt/apache/httpd/logs/fpm/owncloud.sock|fcgi://localhost/var/www/ [P,L]
<-- it seems proxy_util will interpret the client is requesting:

As you can see in the trace log bellow it seems like a "/" has been prepended
to the uds scheme turning it into a http scheme request:

[Tue Mar 10 20:54:07.372247 2015] [proxy:trace2] [pid 7006:tid 139906126960384]
proxy_util.c(1976): [client masked:masked] *: using default reverse proxy
worker for
(no keepalive)
[Tue Mar 10 20:54:07.372319 2015] [proxy:debug] [pid 7006:tid 139906126960384]
mod_proxy.c(1163): [client masked:masked] AH01143: Running scheme https handler
(attempt 0)
[Tue Mar 10 20:54:07.372353 2015] [proxy:debug] [pid 7006:tid 139906126960384]
proxy_util.c(2193): [client masked:masked] AH00944: connecting
to masked:443
[Tue Mar 10 20:54:07.480068 2015] [proxy:debug] [pid 7006:tid 139906126960384]
proxy_util.c(2394): [client masked:masked] AH00947: connected
/unix:/opt/apache/httpd/logs/fpm/owncloud.sock%7Cfcgi://localhost/var/www/ to
[Tue Mar 10 20:54:07.480241 2015] [ssl:error] [pid 7006:tid 139906126960384]
[remote] AH01961: SSL Proxy requested for masked:443 but
not enabled [Hint: SSLProxyEngine]
[Tue Mar 10 20:54:07.480259 2015] [proxy:error] [pid 7006:tid 139906126960384]
AH00961: HTTPS: failed to enable ssl support for masked:443 (masked)

Hope this helps.

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message