add nginx.conf modification guide

This commit is contained in:
EricTYL 2019-11-22 13:44:58 +08:00
parent bce094e140
commit 414019484b
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ $ sudo systemctl status nginx # 查看 nginx 是否啟動
$ sudo systemctl restart nginx # 安全重啟 nginx若已啟動則可跳過此步驟 $ sudo systemctl restart nginx # 安全重啟 nginx若已啟動則可跳過此步驟
$ cd /etc/nginx/ $ cd /etc/nginx/
$ sudo mkdir orbit_sites/ $ sudo mkdir orbit_sites/
$ vim nginx.conf # add `include /etc/nginx/orbit_sites/*;` to Virtual Host Configs block
$ sudo vim orbit_sites/xxx_ooo # 建立網站 nginx 設定檔xxx 為學校縮寫ooo 為系所、單位縮寫。內容參考附註 nginx 設定檔 $ sudo vim orbit_sites/xxx_ooo # 建立網站 nginx 設定檔xxx 為學校縮寫ooo 為系所、單位縮寫。內容參考附註 nginx 設定檔
``` ```
```nginx ```nginx