Problem with Apache HTTP reverse proxy

Issues related to applications and software problems
Post Reply
cazz
Posts: 1
Joined: 2023/07/31 20:25:34

Problem with Apache HTTP reverse proxy

Post by cazz » 2023/07/31 20:45:24

Hi
I use Apache HTTP reverse proxy to distribute traffic from my subdomain so it goes do right server.
Everything works fine except login to Zabbix server.
I can access the login page but I can't login.
After a while I think I have find the problem but not the solution
It looks like it forget the username/password and trying to login as guest even when I write right username and password.

The config file looks like this (have only change the domain name)

Code: Select all

<VirtualHost *:443>

    ServerName info.domain.se

    # Start Rewrite Engine
    RewriteEngine On


    #20ssl_engine
    SSLEngine On
    SSLCertificateFile "/etc/letsencrypt/live/home.domain.se/cert.pem"
    SSLCertificateKeyFile "/etc/letsencrypt/live/home.domain.se/privkey.pem"
    SSLCertificateChainFile "/etc/letsencrypt/live/home.domain.se/chain.pem"


    # Reverse Proxy (with exclusion of local Letsencrypt challenge path)
    ProxyPassMatch ^/.well-known/acme-challenge/ !

    # Websockets proxypass
    RewriteCond %{HTTP:Upgrade} websocket [NC]
    RewriteCond %{HTTP:Connection} upgrade [NC]
    RewriteRule .* ws://172.16.0.6/zabbix%{REQUEST_URI} [P,L]

    ProxyPass  / http://172.16.0.6/zabbix/ max=3 retry=30
    ProxyPassReverse / http://172.16.0.6/zabbix/



    <Location "/">
      <RequireAll>
        Require all granted
      </RequireAll>
    </Location>

</VirtualHost>
I guess that I have to add some more code to make it works but not sure what.

Post Reply