Ad Widget

Collapse

SSL & Redirect

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hradigan
    Junior Member
    • Jan 2025
    • 2

    #1

    SSL & Redirect

    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?
  • hradigan
    Junior Member
    • Jan 2025
    • 2

    #2
    Found the issue. The 000-default.conf was set wrong and I needed to flush browser cookies

    Comment

    Working...