2022-03-26から1日間の記事一覧

nginx の autoindex 設定

location / { autoindex on; autoindex_exact_size off; autoindex_format html; autoindex_localtime on; charset utf-8; }

SynologyのWebStation(nginx)のconf設定 永続化

手順 1)/etc/nginx/app.dにあるserver.webstation-vhost.confを開く 2)対象とするserver セクションのincludeパスをメモ include /usr/local/etc/nginx/conf.d/{ランダム値}/user.conf*; vi /etc/nginx/app.d/server.webstation-vhost.conf //例 server …

nginxのコマンドなど

コマンド 起動 $ sudo service nginx start 再起動$ sudo nginx -s reload 停止nginx -s stop 設定ファイルのチェックnginx -t 設定ファイルの場所 メイン設定ファイルcd /etc/nginx/ 仮想サーバ等の設定ファイルcd /etc/nginx/conf.d/