We are trying to redirect requests on port 8555 to port 8443. In our httpd.conf file, we have the following:
<VirtualHost *:8555>
SSLEngine on
# SSL configuration that is irrelevant to this question
RewriteEngine on
RewriteRule ^(.*)$ https://%{HTTP_HOST}:8443%{REQUEST_URI}
</VirtualHost>
However, when a user goes to https://example.con:8555/foo
, they get redirected to https://example.com:8555:8443/foo
instead of https://example.com:8443/foo
. How do I correct this?