Ad Widget

Collapse

How to configure Zabbix with reverse proxy and HTTP authentication

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jose1711
    Junior Member
    • Jun 2022
    • 3

    #1

    How to configure Zabbix with reverse proxy and HTTP authentication

    Hello,

    I placed Caddy server in front of a Zabbix instance, configured to add an authorization to headers so that it passes Admin credentials (user appears logged in all the time):
    Code:
    # zabbix default Admin credentials
    header_up Authorization Basic QWRtaW46emFiYml4
    Zabbix is configured to allow HTTP authentication and yet when vising https://zabbix.domain.com/index_http.php I am given and error message "You are not logged in - Login name or password is incorrect.".

    Is there something I am missing?

    Thank you,
    jose​
  • jose1711
    Junior Member
    • Jun 2022
    • 3

    #2
    Not sure if this is the best solution but I simply added the parameter to Nginx configuration, i. e.:

    Code:
    #/etc/nginx/conf.d/nginx.conf
    ..
       location ~ .php$ {
        ..
        fastcgi_param  REMOTE_USER      Admin;

    Comment

    Working...