ubantu系統
自定義一個配置文件
路徑:/etc/nginx/conf.d/
server {
listen 80; #設置端口
server_name api.dzzhyl.cn; #設置二級域名
location / {
root /home/myuser/; #設置網頁文件路徑
index index.html; #檢索格式
}
}
重啟服務