Redirect HTTP to HTTPS on the same non-standard port
WAF redirect custom port http automatically to https.
it can not forward automatically when uses custom port. Example: listening port : 8080 with url: www.example.com and redirect HTTP and HTTPS (tick). User from internet request type url: http://www.example.com:8080. It will not automatic redirect https://www.example.com:8080. It shown " Your browser sent a request that this server could not understand Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please." It is only work for port 80 redirect to https instead of custom port (based on Sophos Support Team). User should be type manual https://www.example.com:8080.
AdminRich Baldry (Senior Product Manager, Network Security Group, Sophos Features & Ideas Laboratory) commented
It works for redirecting regular HTTP to HTTPS because we can listen for HTTP on port 80 and HTTPS on port 443. If you try to connect to http://www.example.com:443 you will see the same problem, though. We can't listen for HTTP and HTTPS on the same port at the same time.