Ad Widget

Collapse

HTTPS redirect to /zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FabPell980
    Junior Member
    • Mar 2018
    • 19

    #1

    HTTPS redirect to /zabbix

    Hi guys,

    I have enabled HTTPS on Aapache and this is working great.
    I would like to rewrite the URL: starting from http://mysite I have the correct redirect to https://mysite (PHP default page) but I want to access automatically to https://mysite/zabbix or, a better solution could be https://mysite pointing to the login page of Zabbix.

    I can't accomplish this, what can I do?

    In /etc/apache2/sites-available/000-default.conf and default-ssl.conf
    I have the DocumentRoot pointing to /var/www/html

    Thank you

    Fabrizio





  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    I have DocumentRoot pointing to /usr/share/zabbix for the default-ssl.conf.

    and virtualhost.conf has

    Rediredt / https://<server>

    So if they just use http in the url, they get to https. I've also done it with rewrites, but don't have an example now.

    Comment

    • FabPell980
      Junior Member
      • Mar 2018
      • 19

      #3
      Thank you! I solved the issue!

      Comment

      • akhila.krishnan
        Junior Member
        • Jul 2019
        • 1

        #4
        Hi kindly help me with the solution . I am also facing the same issue . Though I have the document root and redirect rules in place but it does not seem to be working .
        I want my https://myprodsite to redirect to https://myprodsite/zabbix

        Comment

        Working...