我的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:
驅動器上不會顯示出來!
任何意見將不勝感激!