怎么样设置多虚拟主机访问局域网呢!下面由小编给你做出详细的!希望对你有帮助!
:
多虚拟主机访问局域网一、
在wampbinapacheApache2.4.4confextrahttpd-vhosts.conf 修改如下
复制代码代码如下:
NameVirtualHost *:80
DocumentRoot "E:/website/pxsj"
ServerName host7
ServerAlias 192.168.1.116
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
NameVirtualHost *:8080
DocumentRoot "E:/website/whsj"
ServerName host10.
ServerAlias 192.168.1.116:8080
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
多虚拟主机访问局域网二、
wampbinapacheApache2.4.4confhttpd.conf 修改如下:
在该文件中查找“Listen”一词修改
复制代码代码如下:
Listen 80
Listen 8080
# Virtual hosts
# Include conf/extra/httpd-vhosts.conf去掉前面的#,这样就开启了httpd-vhosts虚拟主机文件。这时候重启环境
”人还: