Self Service Redirect to HTTPS

From support-works
Revision as of 15:26, 22 June 2018 by Pamelal (talk | contribs)
Jump to navigation Jump to search



Status: Published
Version: 1.0
Authors: Hornbill Support
Applies to: Supportworks ITSM 4.x

If you prefer you could re-direct http to https for Self service. This could also be applied to the web client. You will need to edit the file in ..\Hornbill\Core Services\Apache\conf\cs\core\501_vhosts.conf.

Initially you may be tempted to use the following:

<VirtualHost _default_:80>
RewriteEngine On
RewriteRule (.*/webclient/) https://<servername>/sw/webclient
RewriteRule (.*/selfservice/) https://<servername>/sw/selfservice
Include "conf/cs/apps/*.conf"
</VirtualHost>

In actual fact the best option is to use this as it takes out the requirement for having fixed paths:

<VirtualHost _default_:80>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*/webclient/) https://%{HTTP_HOST}:443%{REQUEST_URI}
RewriteRule (.*/selfservice/) https://%{HTTP_HOST}:443%{REQUEST_URI}
Include \"conf/cs/apps/*.conf\"
</VirtualHost>