Proxy broken after updating httpd to 2.4.62

Today I updated my server (Rocky Linux release 9.5 (Blue Onyx)) with yum updated which updated apache httpd to 2.4.62 and the proxy seems not to work anymore.

When I start the script/server, it tells me that it listens to tmp/diaspora.sock as intended.

But when I try to access diaspora via the browser, the error logs show up this:
AH01083: error parsing URL http://: Invalid host/port

Might have something to do with a change the apache developers did concerning “SetHandler” for the proxy configuration (see CHANGELOG for 2.4.62), but I have no idea how to fix it.

Here a snippet of my /etc/httpd/conf.d/diaspora.conf file:

  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  RewriteRule ^/(.*)$ balancer://upstream%{REQUEST_URI} [P,QSA,L]

  <Proxy balancer://upstream>
    # Recommended, using a unix socket (Requires Apache >= 2.4)
    BalancerMember unix:///home/diaspora/diaspora/tmp/diaspora.sock|http://
    # Alternatively let diaspora listen on a local port (Use this for Apache < 2.4)
    # BalancerMember http://localhost:3000
  </Proxy>

 

Any ideas?

Greetings, Jochen

Mh, I don’t have an Apache setup ready to test. Can you try

BalancerMember "unix:///home/diaspora/diaspora/tmp/diaspora.sock"

and see if that works?

Error log file now shows

“AH00934: all workers are busy. Unable to serve balancer://upstream/”

on every access to diaspora.

Greetings, Jochen

I recommend switching back to a port for now (you can change that in diaspora.toml) until someone has the time to debug that.

ChatGPT was able to fix my problem. I had to fix just this line with BalancerMember:

  <Proxy balancer://upstream>
    # Recommended, using a unix socket (Requires Apache >= 2.4)
    BalancerMember "unix:///home/diaspora/diaspora/tmp/diaspora.sock|http://localhost"
    # Alternatively let diaspora listen on a local port (Use this for Apache < 2.4)
    # BalancerMember http://localhost:3000
  </Proxy>

The double quotes were missing …

Greetings,

Jochen