您的位置:首页 > 其它

WAMP配置局域网公用服务器

2017-02-07 21:04 225 查看
第一步:打开httpd-vhost.conf文件,在下面两个地方(标红)修改为括号中内容:

<VirtualHost *:80>
ServerName localhost
DocumentRoot D:/wamp64/www
<Directory  "D:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local (Require all granted)
</Directory>

</VirtualHost>

#

<VirtualHost *:80>
ServerName kl.ikeeko.local
DocumentRoot "d:/ikeeko.kl"
<Directory  "d:/ikeeko.kl/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local (Require all granted)
</Directory>

</VirtualHost>

第二步:重启服务器,浏览器输入服务器ip地址即可访问,想要通过域名访问,可在服务器中添加vhost映射
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: