Problem with Apache HTTP reverse proxy

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

Problem with Apache HTTP reverse proxy

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

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>


    # Start Rewrite Engine
    RewriteEngine On

    SSLEngine On
    SSLCertificateFile "/etc/letsencrypt/live/"
    SSLCertificateKeyFile "/etc/letsencrypt/live/"
    SSLCertificateChainFile "/etc/letsencrypt/live/"

    # 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://{REQUEST_URI} [P,L]

    ProxyPass  / max=3 retry=30
    ProxyPassReverse /

    <Location "/">
        Require all granted

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

Post Reply