Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936791 - www-servers/apache-2.4.61 and 2.4.62: regression in proxy_fcgi, now demands a dummy string after fcgi://
Summary: www-servers/apache-2.4.61 and 2.4.62: regression in proxy_fcgi, now demands a...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-07-27 19:57 UTC by calimeroteknik
Modified: 2024-07-28 05:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description calimeroteknik 2024-07-27 19:57:21 UTC
After updating from 2.4.59 and restarting apache, I get a "Bad Request" error when visiting FCGI pages on my website. I'm using Unix Domain Sockets (as files instead of network ports) for apache to communicate with the FCGI daemon.

Reproducible: Always

Steps to Reproduce:
1. Use a line such as `SetHandler proxy:unix:/somewhere/php-fcgi.sock|fcgi://` in an apache vhost config.
2. Visit the website of the vhost on a page that uses the handler.
Actual Results:  
A barebones HTML page that says "Bad Request" with HTTP code 400
Logs (error_log) that say things like `[proxy_fcgi:error] AH01059: error parsing URL //: Invalid host/port`

Expected Results:  
The output of the FCGI script requested.
No error log.

Upstream bug report (reopened): https://bz.apache.org/bugzilla/show_bug.cgi?id=69160

Circumvention is as easy as adding a duummy domain to the configuration, for example:
-SetHandler proxy:unix:/somewhere/php-fcgi.sock|fcgi://
+SetHandler proxy:unix:/somewhere/php-fcgi.sock|fcgi://apache_bug_69160