logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

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

or

Bitcoin

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
Author
user12978319283



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

Code:
        Redirect /      https://10.10.10.10/

        ProxyPass /grafana https://10.10.10.10:3000/
        ProxyPassReverse /grafana https://10.10.10.10:3000/



ssl.conf - virtual host port 443

Code:
        SSLProxyEngine On
        SSLProxyVerify none
        SSLProxyCheckPeerCN off
        SSLProxyCheckPeerName off
        SSLProxyCheckPeerExpire off
        ProxyPass /grafana https://10.10.10.10:3000/
        ProxyPassReverse /grafana https://10.10.10.10:3000/



But `/grafana` redirects to `https://10.10.10.10/login` instead of `https://10.10.10.10:3000/login`
.

Any suggestion?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
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