Update:
For DSM 5 the paths are changed:
- DSM 4: /usr/syno/etc/httpd-ssl-vhost.conf-user
- DSM 5: /etc/httpd/sites-enabled-user/httpd-ssl-vhost.conf-user
I want to be able to access my Synology Disk Station Management (DSM) from the internet in a secure way through https.
DSM is standard running on the Synology in https mode on port 5001, so we need to setup a reverse proxy in apache:
Access the Synology with SSH using Putty, en type the following commands in the shell prompt to navigate to the right folder:
For DSM 4:
cd /usr/syno/etc/
For DSM 5:
cd /etc/httpd/sites-enabled-user/
Then we need to edit the ssl host configuration file:
vi httpd-ssl-vhost.conf-user
I want to access my DSM using this domain name: dsm.MYOWNDOMAIN.org, like https://dsm.myowndomain.org, so we need to add a new host section, append this section in the open file:
<VirtualHost *:443> ServerName dsm.myowndomain.org SSLEngine On SSLProxyEngine On ProxyRequests Off ProxyVia Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / https://localhost:5001/ ProxyPassReverse / https://localhost:5001/ </VirtualHost>
It’s obvious that you have to change .myonwndomain.org with your real domain name.
Save the file and exit vi.
Don’t forget to set up your DNS to point to your external IP address, and to open port 443 in your router and direct the requests to this port to your Synology internal ip adres.
We need to restart Apache the load the changes we have done:
For DSM 4
/usr/syno/etc.defaults/rc.d/S97apache-user.sh restart
For DSM 5
httpd -k restart
Now you will be able to access your Synology DSM from everywhere using https!
I was looking for a tutorial like this for a long time, thank you very much for sharing your knowledge!
LikeLike
the path to httpd-ssl-vhost.conf-user has been changed in DSM 5
DSM 4: /usr/syno/etc/httpd-ssl-vhost.conf-user
DSM 5: /etc/httpd/sites-enabled-user/httpd-ssl-vhost.conf-user
LikeLike
Op één of ander manier krijg ik het niet voor elkaar. Virtualhost heb ik aangemaakt en apache herstart. 443 is geforward naar mijn interne IP adres. ik heb wel een ddns naam genaamd …..synology.me.
Mis ik iets of doe ik iets verkeerd?
LikeLike
Krijg je een fout melding na het herstarten van Apache?
LikeLike
nee, het opstarten gaat geoon goed
LikeLike
Ok, ik stuur je een mailtje zodat we in private ernaar kunnen kijken.
LikeLike