Access Synology DSM from the internet with a Reverse Proxy

22 Nov, 2012

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:, like, so we need to add a new host section, append this section in the open file:

<VirtualHost *:443>
SSLEngine On
SSLProxyEngine On
ProxyRequests Off
ProxyVia Off
<Proxy *>
Order deny,allow
Allow from all
ProxyPass / https://localhost:5001/
ProxyPassReverse / https://localhost:5001/

It’s obvious that you have to change 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/ restart

For DSM 5

httpd -k restart

Now you will be able to access your Synology DSM from everywhere using https!

Hi! Focus and dedication to everything that has to do with technology and, most of all, software development and architecture is what describes me. I’m curious and interested in everything that is new and I seek to understand the more quickly the potential and the ability to implement these technologies in the real world. I love open source and I think that sharing knowledge is the key to make better things, everywhere. Marco is the co-founder of the Dutch Azure Meetup, a series of meetings to share Azure knowledge using a hands-on approach.
Inline Feedbacks
View all comments

Explore related posts