I wonder if currently there’s a way that I can force/redirect user who visits siteworx using port 2080 to port 2443? I want to ensure users are going through the secure port 2443 when logging in. Any inputs would be much appreciated. Thank you!
I’m sorry, I’ll have to test it but one thought is you may need to put in vhost file as well perhaps, but this depends if you have set it on its own siteworx account.
I’ll try to test it over bank holiday and let you know
I hope you don’t mind, but please can you try as follows:
SSH into server
cd /usr/local/interworx/etc/httpd
vi httpd-custom.conf
add the following at the very end httpd-custom.conf
RewriteEngine on
RewriteCond %{SERVER_PORT} =2080
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
save and run service iworx restart
test
A word of warning though, webmail may have issues as it uses port 2080, but I could be wrong sorry, and use at your risk, and I’m sure they may be a better solution, so sorry if there is.
As far as I can see webmail can use port 2443 as well, so that shouldn’t be a problem.
I will adopt Evanion’s method as of now, which I believe is the easiest way to just ask clients to access <domain.com>/siteworx and have it redirected to <myserverhostname.com>:2443/siteworx. Clients probably won’t know about port 2080 if I don’t make them aware of it, so I think I will keep the 2080 redirection guide for later use.