瀏覽器的預設連接埠

來源:互聯網
上載者:User

標籤:http   io   ar   os   sp   檔案   on   問題   log   

最近在學習nginx,學習有關nginx的配置,我一直搞不明白當我在瀏覽器輸入http://192.xx.xx.xx..是,nginx是如何判斷請求發送到主機上的哪個連接埠,

nginx的設定檔上寫的是80連接埠(如下),然而問題是我並沒有在瀏覽器的地址欄裡寫明,後來上網查了有關的資料才明白原因

#
# The default server
#
server {
listen 80 default_server;
server_name _;

#charset koi8-r;

#access_log logs/host.access.log main;

location / {
root /usr/share/nginx/html/KB/;
index index.html index.htm;
}

.....................

引用:

問題:在瀏覽器地址欄輸入\\192.168.1.1 預設訪問該主機的哪個連接埠?
答案:
①如果是\\IP 則瀏覽器會隱式轉換為file://IP  這個是135 和 445連接埠
②如果是IP   則預設是HTTP  這個是80連接埠

瀏覽器的預設連接埠

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.