所在位置:
首页 >
营销资讯 >
网站运营 > wampserver3.0.6版本怎么设置虚拟主机?
wampserver3.0.6版本怎么设置虚拟主机?
时间:2024-01-12 09:36:01 | 来源:网站运营
时间:2024-01-12 09:36:01 来源:网站运营
wampserver3.0.6版本怎么设置虚拟主机?:开启虚拟主机是在conf/httpd.conf里面的1
#Include conf/extra/httpd-vhosts.conf
把#去掉就开启虚拟主机了。
虚拟主机配置:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#配置自己的虚拟主机
#网站目录,如果在www目录下的php目录,下面就填写F:/www/phpp
DocumentRoot "F:/www"
#域名
ServerName localhost
#这里配置欢迎首页面
DirectoryIndex index.html index.htm index.php
Options FollowSymLinks
#不允许别人修改我们的页面
AllowOverride None
#设置访问权限
order allow,deny
Allow from all