Ad Widget

Collapse

How to properly redirect browsers to /zabbix for login

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • db_owner
    Junior Member
    • Dec 2023
    • 5

    #1

    How to properly redirect browsers to /zabbix for login

    I'm using apache2 as installed by default on Debian 12. I'm trying to get a Zabbix server setup so that Apache will redirect and I can go to zabbix.example.com and it will go to the correct login page https://zabbix.example.com/zabbix however the redirect only seems to work on Firefox. On Edge and Chrome, the browser arrives as the default debian apache setup page, seemingly ignoring the redirect.

    In the 000-default.conf I have:

    Code:
    ServerName zabbix.example.com
    Redirect permanent / https://zabbix.example.com/zabbix
    In the default-ssl.conf there is nothing except the default apache entries.

    I thought I would put the servername and redirect permanent in the default-ssl.conf also, but that doesn't work. It leads to /zabbixzabbixzabbixzabbix and then errors with too many redirects.

    What am I missing? What is the correct way to make it so all browsers visiting zabbix.example.com will arrive at the login page https://zabbix.example.com/zabbix?

    Thanks for any help.​
Working...