Apache Lounge


About Forum Index Downloads Search Register Log in  RSS Apache Lounge  

Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.



A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.

Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Proxy pass doesn't redirect

Joined: 12 Dec 2019
Posts: 1
Location: India

PostPosted: Thu 12 Dec '19 8:45    Post subject: Proxy pass doesn't redirect Reply with quote

I want to redirect all traffic from http to https. But I also want
`/grafana` to go to `https://localhost:3000/`

Port 80 and 443 is listening by apache2 and serves zabbix frontnend.

Port 3000 is listening by grafana-server.

apache2.conf - virtual host port 80

        Redirect /

        ProxyPass /grafana
        ProxyPassReverse /grafana

ssl.conf - virtual host port 443

        SSLProxyEngine On
        SSLProxyVerify none
        SSLProxyCheckPeerCN off
        SSLProxyCheckPeerName off
        SSLProxyCheckPeerExpire off
        ProxyPass /grafana
        ProxyPassReverse /grafana

But `/grafana` redirects to `` instead of ``

Any suggestion?
Back to top
James Blond

Joined: 19 Jan 2006
Posts: 6714
Location: Germany, Next to Hamburg

PostPosted: Thu 12 Dec '19 13:12    Post subject: Reply with quote

That problem is from the grafana server.
Either you use mod_proxy_html to change that or your should use a vhost with a reverse proxy that use / instead of /grafana
Back to top

Reply to topic   Topic: Proxy pass doesn't redirect View previous topic :: View next topic
Post new topic   Forum Index -> Apache