Configuring Synology NAS Web Server
Overview
Notes on how to configure a web server on a Synology NAS device.
Enabling the web server
DSM > Package Center > install Web Service
Controlling access and redirects
According to sources the "nginx" web server does not support .htaccess. It's necessary to use the Apache server to support .htaccess.
Some packages can't run on nginx, e.g. phpMyAdmin. It's necessary to edit /etc/nginx/conf.d/www.phpMyAdmin.conf to control access [1], e.g.
location ~ ^/phpMyAdmin {
allow 192.168.1.0/24; // change to desired IP
deny all;
/* other configuration */
}
FTP
- DSM > Control Panel > File Sharing group > File Services > FTP tab [2]
- Enable FTP Service:
checked - General group > Advanced Settings button
- Change user root directories:
checked - Select User button
- Add button
- User or Group: Select existing user/group account from dropdown
- Specify ftp root directory.
- Add button
- Change user root directories:
- Enable FTP Service:
Notes
- ↑ .htaccess - web and >DSM6, Synoloy forums
- ↑ How to access files on Synology NAS via FTP, DiskStation Manager knowledge base