关于Virtual-Hosting的理解
生活随笔
收集整理的這篇文章主要介紹了
关于Virtual-Hosting的理解
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
最近在Apache上架設Virtual-hosts 時,發現啟動了httpd-vhost.conf? 之后,再用IP 訪問Main Server(httpd.conf)的設置就失效了。比如說原來 在 htdocs/下有一些應用程序,就不能夠再訪問到。用IP所有的請求就被轉發到了,第一個虛擬主機上。
官方的解釋:
The asterisks match all addresses,so the main server serves no requests. Due to the fact that www.example1.com is first in the configuration file, it has the highest priority and can be seen as the default or primary server. That means that if a request is received that does not match one of the specified ServerName directives, it will be served by this first VirtualHost.
轉載于:https://blog.51cto.com/18816/241767
總結
以上是生活随笔為你收集整理的关于Virtual-Hosting的理解的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 局域网一点通之组网、管网、用网1000问
- 下一篇: 设备间的连线图例