The service has been changed from the previous DSM version 5. Now is NGINX server instead Apache.

To stop the NGINX service: /sbin/initctl stop nginx
To start the NGINX Station: /sbin/initctl start nginx

How to configure NGINX proxy

For FileStation, these application/sites normally expect the browser to connect to application ports, namely in my case the port 7000. This has potentially two problems: I need to open them up on my home router to allow access, and sometimes I’m behind a proxy that doesn’t allow anything else to be used as a port on the url (except for port 80-HTTP or 443-HTTPS).

What is needed to achieve this? Well first a a dns server that accepts wirldcard domains. The Myds.me is one of them and is provided by Synology and directly integrated into the DSM.

Second a file like this is needed to be created (in this case filestation.mydomainname.myds.me is the name of my domain):

server {
    listen 80;
    server_name filestation.mydomainname.myds.me;

    if ($http_host != "filestation.mydomainname.myds.me") {
        rewrite ^ filestation.mydomainname.myds.me$request_uri permanent;
    }

    location / {
        proxy_pass http://localhost:7000;
    }

}

Save this file as nginx-FILESTATION-vh.conf at /etc/nginx/conf.d

Repeat for other sites like Audio Station, changing the hostname and the localhost port.

AudioStation: port 8800
NoteStation: port 9350
DownloadStation: port 8000
VideoStation: port 9007

Now we can restart the web station with /sbin/initctl stop nginx followed by the start command.
Check now if you can access the url: http://filestation.mydomain.myds.me

For SSL config use the following code:

server {
 listen 443 ssl;
 server_name filestation.mydomainname.myds.me;
 ssl_certificate /etc/nginx/ssl/certificate.crt;
 ssl_certificate_key /etc/nginx/ssl/key.key;
 ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
 ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA;
 ssl_prefer_server_ciphers on;

location / {
 proxy_pass http://localhost:7000/;
 }

}

server {
 listen 80;
 server_name filestation.mydomainname.myds.me;

location / {
 rewrite / https://filestation.mydomainname.myds.me;
}

}