Redirect HTTP to HTTPS on Synology NAS
When having the Synology DSM open on port 5000/5001 I can configure it to always redirect to 5001 (HTTPS). But now I have created a custom sub-domain and a rule in the reverse proxy to route traffic on this sub-domain with HTTPS/443 to localhost:5000 so that I don't have to expose port 5000/5001 directly. But now I can't get the auto-redirect to work anymore. If entering http://nas.mydomain.com:80 I don't get redirected to port 443 but to 5001 which is closed. Can I configure it to redirect to 443 instead?
Solution 1:
Synology DSM Menu > Control Panel > External Access -change http to 80 and https to 443 like this (Control Panel example setup)
No need to forward the ports just changes them in the control panel since from a security point of view its the same just what you are doing adds extra work and more resource usage from the NAS.
Solution 2:
I was also trying to configure remote access to my Synology via HTTPS
on default port 443
I managed to achieve it with these steps:
- Configure external ports in DSM Menu > Control Panel > External Access > Advanced tab (set DSM (HTTPS) port
443
) - Configure port forwarding on router where external port
443
is redirected to Synology NAS port5001
(the HTTPS port that is configured in Control Panel > Network > DSM Settings,5001
is the default one)