标签:http os sp on log amp ad line bs
需求:想让公司同一局域网的同事电脑访问我的电脑里面的php项目。
条件:首先确认localhost正常访问你的项目
步骤:
1.增加新增监听端口 ,如:Listen 0.0.0.0:99
2.允许别人访问你的项目所在目录的权限,如
<Directory F:/www/web/>
AllowOverride All
Require all granted
</Directory>
3.改变wampserver在线状态。点击图标,最下面的put online
4.在http-vohost.conf中添加虚拟目录。如
E:\wamp\bin\apache\apache2.4.9\conf\extra\http-vohost.conf
<VirtualHost *:99>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "F:/www/Web"
ServerName localhost:99
ErrorLog "logs/error.log"
CustomLog "logs/localhost.log" common
</VirtualHost>
5.重启apache
6.浏览器访问 你的IP:99 如192.168.1.212:99 哟西,正常访问项目 ,如果你的手机连的也是同一局域网,192.168.1.212:99也可以访问你的电脑上的项目。
标签:http os sp on log amp ad line bs
原文地址:http://www.cnblogs.com/findgor/p/4021790.html