2012-06-14 78 views
0

我的httpd-vhosts.conf文件看起来像这样。我正在尝试创建2个虚拟主机。其中一个项目存在于默认文档根目录中,而另一个完全在另一个硬盘驱动器上。wamp/Apache - 存在于/ wamp/www之外的新虚拟主机

<VirtualHost *:80> 
    ServerAdmin [email protected] 
    DocumentRoot "C:/wamp/www/project1/public_html" 
    ServerName p1.localhost 
    ServerAlias www.p1.localhost 
    ErrorLog "logs/p1.localhost.log" 
</VirtualHost> 

<VirtualHost *:80> 
    ServerAdmin [email protected] 
    DocumentRoot "E:/Other Media/www" 
    ServerName pn.localhost 
    ServerAlias www.pn.localhost 
    ErrorLog "logs/pn.localhost.log" 
    CustomLog "logs/pn.localhost.log" common 
    <Directory "E:/Other Media/www"> 
     Options Includes Indexes FollowSymLinks 
     Order allow,deny 
     Allow from all 
    </Directory> 
</VirtualHost> 

我还添加了此块到我httpd.conf

<Directory "E:/Other Media/www"> 
    Order allow,deny 
    Allow from all 
</Directory> 

正如所料,VH的/wamp/www工作文件,但该项目我E:驱动器上不会显示出来!

任何意见将不胜感激!

回答

0

我最终将所有东西都搬到EasyPHP。它更加优雅地处理外部磁盘位置。