- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業(yè)務(wù)經(jīng)營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯(lián)網(wǎng)協(xié)會理事單位
- 安全聯(lián)盟認(rèn)證網(wǎng)站身份V標(biāo)記
- 域名注冊服務(wù)機(jī)構(gòu)許可:滇D3-20230001
- 代理域名注冊服務(wù)機(jī)構(gòu):新網(wǎng)數(shù)碼
linux下
首先打開nginx域名配置文件存放目錄:/usr/local/nginx/conf/servers ,如要新增綁定域名bind.landui.com
我們看下一個虛擬主機(jī)配置實例:
server { listen 80; server_name www.tjdsmy.cn; #綁定域名 index index.htm index.html index.php; #默認(rèn)文件 root /home/www/web; #網(wǎng)站根目錄 include location.conf; #調(diào)用其他規(guī)則 }
修改 server_name字段為 server_name www.tjdsmy.cn bind.landui.com;
然后保存即可。
server { listen 80; server_name www.tjdsmy.cn bind.landui.com; #綁定域名 index index.htm index.html index.php; #默認(rèn)文件 root /home/www/web; #網(wǎng)站根目錄 include location.conf; #調(diào)用其他規(guī)則 }
然后重起nginx服務(wù)器,域名就綁定成功了
nginx服務(wù)(www.tjdsmy.cn)器重起命令:/etc/init.d/nginx restart
nginx支持平滑重啟 /etc/init.d/nginx reload 即可生效。
提交成功!非常感謝您的反饋,我們會繼續(xù)努力做到更好!
這條文檔是否有幫助解決問題?
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP