![](/img/trans.png)
[英]How to set root access for all files put inside my Apache2 root directory?
[英]How to Set and Access Multiple Document Root(Directory) in Apache (Wamp Server)
我试图添加;
<VirtualHost *:80>
ServerName localhost
DocumentRoot "d:\www2\" --> tried d:\www2\
<Directory "d:\www2\">
Options Includes Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
Directoryindex index.php index.html index.html index.htm index.shtml
AccessFileName .htaccess
对于 httpd-vhosts,我仍然只能访问 "c:/wamp/www" 。 我想访问他们两个。 请帮我。
每个 ServerName 只能有一个文档根。
尝试使用另一个服务器名称(如 localhost2)设置虚拟主机,然后修改您的主机文件以将 localhost2 指向您的本地 ip (127.0.0.1)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.