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

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

PHPz
Release: 2020-09-05 11:56:08
Original
2311 people have browsed it

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
Copy after login
<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>
Copy after login

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

Related labels:
Statement of this Website
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
Latest Issues
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template