nginx server_name設定問題
为情所困
为情所困 2017-05-16 17:09:05
0
2
460

設定檔

server {
        listen       8899;
        server_name  tc.com;

        location / {
            root   html;
            index  index.html index.htm;
       }
    }

瀏覽器訪問tc.com:8899沒用,但使用localhost:8899有用,這是為什麼?

为情所困
为情所困

全部回覆(2)
给我你的怀抱

我懷疑你不知道 DNS 和 網域還有 server_name 是什麼差別

迷茫

忘改hosts了

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!