[Bug 61355] New: DirectorySlash directive should use protocol in X-Forwarded-Proto header when available

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 61355] New: DirectorySlash directive should use protocol in X-Forwarded-Proto header when available

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=61355

            Bug ID: 61355
           Summary: DirectorySlash directive should use protocol in
                    X-Forwarded-Proto header when available
           Product: Apache httpd-2
           Version: 2.4.25
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_dir
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

The DirectorySlash directive in mod_dir does not respect the X-Forwarded-Proto
header. This results in Apache HTTPD generating redirects with the wrong
protocol when the DirectorySlash directive is enabled and the Apache HTTPD
service is running behind a reverse proxy.

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

Reply | Threaded
Open this post in threaded view
|

[Bug 61355] DirectorySlash directive should use protocol in X-Forwarded-Proto header when available

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=61355

Axel Reinhold <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #1 from Axel Reinhold <[hidden email]> ---
Created attachment 36295
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36295&action=edit
Bug 61355 - make http_scheme use X-Forwarded-Proto header

As DirectorySlash honors the scheme given in ServerName the scheme in
http_scheme() from http_core.c should respect X-Forwarded-Proto header instead
of fixing mod_dir.c for this bug. This has been implemented in the attached
patch. Should also be mentioned in the doc. Add respect of X-Forwarded-Proto to
http_scheme() instead of fixing mod_dir

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