Repository navigation
mod_proxy_fcgi: Handle CGI Local Redirect Responses - #810
Open
arturobernalg wants to merge 1 commit into
Open
arturobernalg wants to merge 1 commit into
arturobernalg wants to merge 1 commit into
Conversation
arturobernalg
force-pushed
the
fix/httpd-61430-fcgi-local-redirect
branch
from
October 9, 2026 06:20
20defd4 to
83dafe1
Compare
* modules/proxy/mod_proxy_fcgi.c (dispatch): Recognize a CGI Local Redirect Response (RFC 3875, 6.2.2), a Location with a local URI path and no other header, read the rest of the response and remember the URI. (fcgi_request_status): New, does the internal redirect once the connection to the backend has been released, like mod_proxy_scgi. * test/modules/proxy/fcgi_faker.py, test_07_fcgi_local_redirect.py: New. * test/modules/proxy/env.py: Load proxy_fcgi. * docs/log-message-tags/next-number: Update. PR: 61430
arturobernalg
force-pushed
the
fix/httpd-61430-fcgi-local-redirect
branch
from
October 9, 2026 06:25
83dafe1 to
42259ac
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mod_proxy_fcgi did not handle CGI Local Redirect Responses as required by RFC 3875 section 6.2.2. A FastCGI response containing only a local Location header was forwarded to the client instead of being processed as an internal redirect.
The change detects this response form, drains the FastCGI request normally, releases the backend connection, and performs the internal redirect afterwards.
Includes regression coverage for local redirects, query strings, POST/HEAD handling, backend connection reuse, external redirects, and normal FastCGI responses.