Server Management - Systems Insight Manager
cancel
Showing results for 
Search instead for 
Did you mean: 

System Management Homepage with reverse proxy

Patrick Mueller_2
Occasional Visitor

System Management Homepage with reverse proxy

Hello

I try to configure smh acces through an apache reverse proxy.

This is a working configuration in httpd.conf (apache 2.2.3):

ProxyRequests Off
Proxypass / https://smhhost.domain.ch:2381/
ProxyPassReverse / https://smhhost.domain.ch:2381/

Access URL https://rproxy.domain.ch/ works.


Now I want extend the setup that it works as following:

-https://rproxy.domain.ch/smhhost1 should be a reverse proxy for https://smhhost1.domain.ch:2381
-https://rproxy.domain.ch/smhhost2 should be a reverse proxy for https://smhhost2.domain.ch:2381
-...

I tried this setup in httpd.conf:

ProxyRequests Off
ProxyPass /smhhost1/ https://smhhost1.domain.ch:2381/
ProxyPassReverse /smhhost1 https://smhhost.domain.ch:2381/

ProxyPass /smhhost2/ https://smhhost2.domain.ch:2381/
ProxyPassReverse /smhhost2 https://smhhost2.domain.ch:2381/


Access URL https://rproxy.domain.ch/smhhost1 gives an error 404 (same for .../smhhost2). In httpd error log, I see the cause for this behaviour. httpd tries to access file /var/www/html/cpqlogin.html which does not exist (httpd should access this file via reverse proxy...).

How can I configure apache that this kind of configuration works?

Regards
Patrick