天天看點

wampserver配置站點後,區域網路無法通路

安裝wampserver2.4.9後,預設是可以區域網路通過IP通路,可是配置站點後區域網路IP通路不了。

wampserver配置站點後,區域網路無法通路

決解方法-------------------------------------

打開 \wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf檔案,添加如下配置 

192.168.18.105 是我的IP
           
<VirtualHost *:80>
    ServerAdmin 192.168.18.105
    DocumentRoot "D:\wamp\www"
    ServerName 192.168.18.105
    ServerAlias 192.168.18.105
    ErrorLog "192.168.18.105-error.log"
    CustomLog "192.168.18.105-access.log" common
</VirtualHost>
           

繼續閱讀