I am not sure where I messed up but I can't for the life of me get the http redirect to work properly. I'm using Debian 12 with Apache, with an SSL cert, and I want to redirect from port 80 to 443. The cert is working & DNS is resolving properly.
Below is what happens in the browser
http://Server IP/ ----> http://Server IP/
https://Server IP/ ----> https://Server IP/
http://Server IP/zabbix/ ----> http://Server IP/zabbix/
https://Server IP/zabbix/ ----> https://Server IP/zabbix/
http://Server DNS/ ----> https://Server DNS/
https://Server DNS/ ----> https://Server DNS/
http://Server DNS/zabbix ----> https://Server DNS/zabbixzabbixzabbixzabbixzabbixzabbixzabbixzabbixza bbixzabbixzabbixzabbixzabbixzabbixzabbixzabbixzabb ixzabbix/
https://Server DNS/zabbix ----> https://Server DNS/zabbixzabbixzabbixzabbixzabbixzabbixzabbixzabbixza bbixzabbixzabbixzabbixzabbixzabbixzabbixzabbixzabb ixzabbix/
I want all requests redirected to https://Server DNS/zabbix. Any idea where I've messed up?
Below is what happens in the browser
http://Server IP/ ----> http://Server IP/
https://Server IP/ ----> https://Server IP/
http://Server IP/zabbix/ ----> http://Server IP/zabbix/
https://Server IP/zabbix/ ----> https://Server IP/zabbix/
http://Server DNS/ ----> https://Server DNS/
https://Server DNS/ ----> https://Server DNS/
http://Server DNS/zabbix ----> https://Server DNS/zabbixzabbixzabbixzabbixzabbixzabbixzabbixzabbixza bbixzabbixzabbixzabbixzabbixzabbixzabbixzabbixzabb ixzabbix/
https://Server DNS/zabbix ----> https://Server DNS/zabbixzabbixzabbixzabbixzabbixzabbixzabbixzabbixza bbixzabbixzabbixzabbixzabbixzabbixzabbixzabbixzabb ixzabbix/
I want all requests redirected to https://Server DNS/zabbix. Any idea where I've messed up?
Comment