2022-03-01から1ヶ月間の記事一覧

memo) SSDP

stackoverflow.com stackoverflow.com

Synology WebStation の Apache で Autoindex を有効化

ConfigファイルにIndexsオプションを追記する Include conf-enabled/.webstation.error_page.default.conf <VirtualHost *:9000> DocumentRoot "/volume1/Media" <IfModule dir_module> DirectoryIndex index.html index.htm index.cgi index.php index.php5 </IfModule> <Directory "/volume1/Media"> Options MultiViews FollowSymLinks …</directory></virtualhost>

Synology WebStation の Apache 設定

1)パッケージセンターからApache をインストール 2)WebStation を設定 仮想ホストの設定の、HTTPバックエンドサーバで Apache HTTP Server 2.4 を選択 3)Apacheの設定 httpd.confの位置 /usr/local/etc/apache24/conf/httpd.conf 仮想サーバの httpd.c…

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/