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映射
<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映射
相关文章推荐
- wamp配置局域网服务器
- Domino服务器在局域网内如何收发邮件(配置自己的DOMINO服务器)?
- IIS服务器配置好后,局域网中的机器无法进行FTP访问
- 配置Apache将自己的电脑做服务器使局域网内的电脑访问自己的主机
- 配置Apache将自己的电脑做服务器使局域网内的电脑访问自己的主机
- wamp配置多个ip映射,用于局域网内部大家互相访问
- Domino服务器在局域网内如何收发邮件(配置自己的DOMINO服务器)?
- 配置Apache将自己的电脑做服务器使局域网内的电脑访问自己的主机
- 安装好wamp ,如何让局域网里面的设备登录到我的服务器?
- WAMPSERVER环境下:phpmyadmin连接多个服务器配置
- 配置Apache将自己的电脑做服务器使局域网内的电脑访问自己的主机
- vsFTPd-Linux网络安装与配置FTP服务器及Redhat局域网安装的解决办法
- 使用Wamp配置Bugfree,Apache+MySQL+php,局域网访问
- Tomcat 局域网服务器配置
- php服务器wamp的项目配置
- WAMP环境配置说明--php服务器
- 解决: 关于配置局域网内通过一台WEB服务器连接到域服务器进行身份验证的IP设置
- SVN局域网服务器简单配置及使用方法
- 局域网中简单的dhcp服务器的配置
- 配置KVM服务器使虚拟机能与局域网其他主机通信