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

            Bug ID: 57590
           Summary: loading mod_proxy_http makes rewriteRule's [proxy]
                    assume http:// URI
           Product: Apache httpd-2
           Version: 2.4.10
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: mod_rewrite
          Assignee: [email protected]
          Reporter: [email protected]

in our setup, we use mod_proxy_fcgi to talk to the php backend (fpm).
for reasons of efficiency, we do not proxy all requests to fpm, only
the ones that are either php, or not satisfiable by anything else.

this is the common scenario in which one would use FallbackResource
however, FallbackResource (as of 2.4.10) cannot be used with a proxy resource.
instead, we use mod_rewrite:

  RewriteEngine On

  RewriteRule ^/.*\.php(/.*)?$
unix:///srv/web/acme.com/logs/socket|fcgi://127.0.0.1%{DOCUMENT_ROOT}$0 [P]

  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
  RewriteRule ^
unix:///srv/web/acme.com/logs/socket|fcgi://127.0.0.1%{DOCUMENT_ROOT}/index.php$0
[P]


and it works perfectly fine. so long as we do *not* load mod_proxy_http into
the same httpd daemon. if we do, the above proxy urls will suddenly be assumed
as http://. this seems… bad. and wrong.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to