Apache proxy error states the worker name is too long
This document (000020945) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12 All Service Packs
Situation
# cat /etc/apache2/vhosts.d/proxy.conf <VirtualHost *:80> ServerName app.example.com ProxyPreserveHost On ProxyPass / http://<server>:<port>/<very_long_path> ProxyPassReverse / http://<server>:<port>/ </VirtualHost>In addition to the proxy module, the Apache server could also have the proxy_balancer module enabled with a proxy configuration similar to the following:
# cat /etc/apache2/vhosts.d/proxy.conf <VirtualHost *:80> ServerName app.example.com <Proxy "balancer://mycluster"> BalancerMember "http://<server>:<port>/<very_long_path>" BalancerMember "http://<server>:<port>" </Proxy> ProxyPreserveHost On ProxyPass / http://<server>:<port>/<very_long_path> ProxyPassReverse / http://<server>:<port>/ </VirtualHost>Running apachectl -t shows:
apachectl -t ProxyPass worker name (http://<server>:<port>/<very_long_path>) too longAfter starting Apache with systemctl start apache2 following alert is reported in the systemctl status apache2 and the /var/log/apache/error_log:
[<timestamp>] [proxy:error] [pid <number>] AH2808: Alert! worker name (http://<server>:<port>/<very_long_path>) too long; truncated to: http://<server>:<port>/<shortened_path_to_length_96>
Resolution
Restrict the ProxyPass and/or BalanceMember URL length to 96 characters or less.
PTF can be requested through SUSE Customer Center
Cause
Apache is working as designed. The proxy and proxy_balancer modules have intentionally set PROXY_WORKER_MAX_NAME_SIZE and PROXY_BALANCER_MAX_NAME_SIZE to 96 characters.
Engineering is aware that a limit of 96 characters may be unrealistic and are considering options moving forward.
Status
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020945
- Creation Date: 20-Jan-2023
- Modified Date:01-Feb-2023
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com