How to enable HTTPS Redirect

Document created by anthony.norwood@turbonomic.com Expert on Mar 10, 2017Last modified by anthony.norwood@turbonomic.com Expert on Mar 13, 2017
Version 4Show Document
  • View in full screen mode

By default, you could access the Operations Manager UI via http or https.  If you would like to configure the Ui to only be accessible via https and have http requests redirected to https, you will need to perform the following steps to do so.

 

Please ensure you follow the correct steps for your operating system. You can determine what system you are using by running the following bash command:

 

cat /etc/*-release

After you have enabled HTTPS Redirect, please follow this guide to set up your organisations certificate: Internal certificate authority (CA) SSL Cert (root+intermediate chain) Minting Process 

CentOS: Step-by-step guide

  1. Connect to the appliance via SSH using the root login (default is ID:root and PW:vmturbo)
  2. Run the following command to edit the httpd.config file:

    vi /etc/httpd/conf/httpd.conf
  3. Add the following text under the commented section titled 'Dynamic Shared Object (DSO) Support':

    LoadModule rewrite_module modules/mod_rewrite.so
  4. Add the following text at the end of the file:

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  5. Save the file by hitting ESC and typing:

    :wq!

    and hitting Enter
     

  6. Run the following command to restart the Apache webserver

    service httpd restart

OpenSUSE: Step-by-step guide

  1. Connect to the appliance via SSH using the root login (default is ID:root and PW:vmturbo)
  2. Run the following command to edit the httpd.config file:

    vi /etc/apache2/httpd.conf.local
  3. Add the following text to the end of this file:

    <VirtualHost *:80>
    Redirect / https://<your appliance IP>/
    </VirtualHost>
  4. Save the file by hitting ESC and typing:

    :wq!

    and hitting Enter

  5. Run the following command to restart the Apache webserver

    /etc/init.d/apache2 restart
3 people found this helpful

Attachments

    Outcomes