purple涵_23
2016-12-01 10:54
按照评论的解决方法,已经修改了locahost的端口为8080,其他test01,test01端口为80;localhost的虚拟站点配置代码如下:<VirtualHost *:8080>
ServerName localhost
DocumentRoot D:/Demo
<Directory "D:/Demo">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
test01:
<VirtualHost *:80>
ServerName test01
DocumentRoot D:/Demo/test01
<Directory "D:/Demo/test01">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
test02:
<VirtualHost *:80>
ServerName test02
DocumentRoot D:/Demo/test02
<Directory "D:/Demo/test02">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
是出现了哪里的问题?
请问你是怎么解决的 我们是一样的问题
你开启了httpd-vhosts.conf吗??
也就是 localhost:8080?
servername是服务器名,要带域名全称。
<VirtualHost *:8080>
ServerName localhost
DocumentRoot D:/Demo
<Directory "D:/Demo">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName test01.com
DocumentRoot D:/Demo
<Directory "D:/Demo">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
PHP入门篇
455956 学习 · 6306 问题
相似问题