Configuring Synology NAS Web Server: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary Tag: wikieditor |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[Category: | [[Category:Synology]] [[Category:Web Development]] | ||
== Overview == | == Overview == | ||
Latest revision as of 14:05, 24 September 2022
Overview[edit]
Notes on how to configure a web server on a Synology NAS device.
Enabling the web server[edit]
DSM > Package Center > install Web Service
Controlling access and redirects[edit]
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[edit]
- 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[edit]
- ↑ .htaccess - web and >DSM6, Synoloy forums
- ↑ How to access files on Synology NAS via FTP, DiskStation Manager knowledge base