Difference between revisions of "FAQ:Self Service Redirect to HTTPS"

From support-works
Jump to navigation Jump to search
(Created page with "{{Template:Basic Cover | title=Self Service Redirect to HTTPS | type=FAQ }} {{Template:Basic Status | status=Published | version=1.0 | authors=Hornbill Support | applicableto...")
 
Line 21: Line 21:
 
RewriteRule (.*/webclient/) https://<servername>/sw/webclient
 
RewriteRule (.*/webclient/) https://<servername>/sw/webclient
 
RewriteRule (.*/selfservice/) https://<servername>/sw/selfservice
 
RewriteRule (.*/selfservice/) https://<servername>/sw/selfservice
Include \"conf/cs/apps/*.conf\"
+
Include "conf/cs/apps/*.conf"
 
</VirtualHost>
 
</VirtualHost>
 
</pre>
 
</pre>

Revision as of 15:26, 22 June 2018



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>