星期一, 8月 17, 2015

Apache2 VirtualHost error

最近都在忙著為伺服器搬家,由於有些負責人已經離職了,我只有廖化作先鋒頂著上,剛好有一個是牽涉到Apache2的項目,我把一切應該拷貝的抄去新的伺服器,大致上都弄好了,在start apache的時候,網頁是可以跑,只是在console出現了一下的問題:

[error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results

網上的解決方案不是很多,還好在apache的官網看到config file裡漏了一項設定,如下:

原本的設定是NameVirtualHost *

Apache官網的設定NameVirtualHost *:80

就是說少了:80在NameVirtualHost的後面,我把它補上,在restart apache就行了.


相關連線: http://httpd.apache.org/docs/2.0/vhosts/name-based.html

沒有留言:

自訂搜尋

追蹤者

熱門文章

我的網誌清單

網頁