When a user requests https://example.com/siteworx it would redirect them to https://<hostname>:2443/siteworx/?domain=example.com and the ssl should work. In order to accomplish this I’ve provided the steps below:
1.) Ensure a service level cert is installed for the server hostname.
2.) Edit /etc/httpd/conf.d/iworx.conf and change the first instance of %{HTTP_HOST} to the server hostname in the following lines:
RewriteRule ^/siteworx(/)?$ https://%{HTTP_HOST}:2443/siteworx/\?domain=%{HTTP_HOST} [R,L]
RewriteRule ^/nodeworx(/)?$ https://%{HTTP_HOST}:2443/nodeworx/ [R,L]
For example,
So, for the hostname: server.example.com, the lines would appear like this once edited:
RewriteRule ^/siteworx(/)?$ https://server.example.com.com:2443/siteworx/\?domain=%{HTTP_HOST} [R,L]
RewriteRule ^/nodeworx(/)?$ https://server.example.com:2443/nodeworx/ [R,L]