关于Synology的nginx
我对Synology的Web服务器有了一些了解。(我在DS220j上进行了调查。)
默认的Web服务器是nginx。
$ nginx -V
nginx version: nginx/1.16.1
TLS SNI support enabled
根目录是/volume1/web。
Nginx的配置文件位于/etc/nginx。
$ ls /etc/nginx
app.d fastcgi_params mime.types proxy.conf uwsgi_params
conf.d koi-utf nginx.conf scgi_params win-utf
fastcgi.conf koi-win nginx.conf.default sites-enabled
重新启动nginx的方法如下。
sudo synoservicecfg --restart nginx
重新启动后,/etc/nginx/nginx.conf 将被覆盖。
在重新启动时,nginx.conf 将从以下mustache文件生成。
$ ls /usr/syno/share/nginx
Alias_v2.mustache DSM.mustache open_file_cache.mustache
avahi.mustache error.html optimization.mustache
cgi.mustache error_page.mustache Portal.mustache
cgi.pass.mustache Firewall.mustache server.mustache
conf.d gzip.mustache SSLProfile.mustache
deny.mustache HSTS.mustache SynoSharing.mustache
deny.PhotoStation.mustache LetsEncrypt.mustache WWW_Main.mustache
deny.synoman.mustache logo.jpg WWWService.mustache
DSM_Main.mustache nginx.mustache X-Accel.mustache