Home >Backend Development >PHP Tutorial >wampserver配置后怎么无法访问局域网?

wampserver配置后怎么无法访问局域网?

PHPz
PHPzOriginal
2016-06-02 11:31:192230browse

wampserver配置后怎么无法访问局域网?

wampserver配置后怎么无法访问局域网?

安装wampserver2.4.9后,默认是可以局域网通过IP访问,可是配置站点后局域网IP访问不了。

1.png

决解方法-------------------------------------

打开 \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>

更多相关知识,请访问 PHP中文网!!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn