GrepBoard/Manuals
609 manuals ·

Apache AH00961: … failed to enable ssl support

·Tested on Apache httpd 2.4.71 · Python 3.12.16 (Docker) · 2026-11·Test scope ↓·3 steps

Fix Apache AH00961 by enabling SSLProxyEngine in the virtual host that proxies to HTTPS. Keep backend certificate and hostname verification enabled.

output
[Sat Nov 28 21:36:46.765091 2026] [core:error] [pid 9:tid 30] [remote 127.0.0.1:18081] AH01961:  failed to enable ssl support [Hint: if using mod_ssl, see SSLProxyEngine][Sat Nov 28 21:36:46.765103 2026] [proxy:error] [pid 9:tid 30] AH00961: https: failed to enable ssl support for 127.0.0.1:18081 (localhost)

Apache could not enable proxy TLS for the https:// backend. Check mod_ssl and SSLProxyEngine in the virtual host that handled the request. In httpd 2.4.71, this branch logs AH00961 and returns HTTP 500. httpd proxy connection source

[1] Find the virtual host for the hostname and port of the failed request. The address and hostname at the end of the error identify the backend. Use the frontend access log to find the request path and timestamp, then match the backend in the error to the virtual host's ProxyPass target. On installations managed with httpd, including the official image, run these commands with the same configuration as the running instance.

console
$ httpd -S$ httpd -M

Use -S to find the virtual host's configuration file and line number. Check -M for proxy_module, proxy_http_module, and ssl_module. Enable any missing module through your installation's module configuration. If the error is AH01114, follow the checks for the backend address and port. httpd command-line options

[2] Set SSLProxyEngine on in that virtual host. Before editing, save a copy of the file outside active configuration directories and record the current value. The directive defaults to off. This example sends frontend requests on port 18080 under /app/ to an HTTPS backend on port 18081 in the same network namespace. Add the highlighted line inside the existing virtual host or replace its current off line.

/repro/current.conf
<VirtualHost 127.0.0.1:18080>    ServerName example.com    SSLProxyEngine on    SSLProxyVerify require    SSLProxyCheckPeerName on    SSLProxyCACertificateFile /repro/backend-ca.pem    ProxyPass "/app/" "https://localhost:18081/"    ProxyPassReverse "/app/" "https://localhost:18081/"</VirtualHost>

SSLEngine enables TLS for clients connecting to Apache. SSLProxyEngine applies to Apache's connection to the backend, even when the frontend uses HTTP. In the example, SSLProxyVerify require verifies the backend certificate chain against the test CA that issued it. SSLProxyCheckPeerName on checks the backend URL's hostname against the certificate. Use the actual backend hostname and the CA file that establishes trust for its certificate. Apache mod_ssl — SSLProxyEngine · SSLProxyVerify · SSLProxyCheckPeerName · SSLProxyCACertificateFile

[3] Check the configuration and repeat the request. Both off and on returned Syntax OK in the test below. After applying the change, check the response and the error log at the time of the request.

console
$ httpd -f /repro/current.conf -t

In production, run the syntax check against the instance's active configuration and use its usual reload procedure. If you manage it directly with apachectl, run apachectl -t && apachectl graceful. If the change causes problems on other paths, restore the backup and repeat the syntax check and reload procedure. apachectl graceful

On your server, request the URL that failed again with curl -i or a browser. probe.py below is the request script used in this test. The command sends GET /app/probe with Host: example.com. With the engine off, Apache returned 500 and logged AH00961. With the engine on and the same CA and backend, the request returned the backend's response without a new AH00961 line.

console
$ python /repro/probe.py frontend 200
output
HTTP/1.1 200 OK

Analyze your Apache log in the browser ↗ — nothing is uploaded.

#apache#ah00961#mod_proxy_http#mod_ssl#reverse-proxy