2011-07-08 28 views
0

我有一個CakePHP應用程序仍在開發中。
我們的服務器通過apache vhost文件完成密碼保護。CakePHP - Apache un-htpasswd某些路徑

e.g

<Directory "/var/www/vhosts/project"> 
Order deny,allow 
Deny from all 
AuthType Basic AuthUserFile /etc/httpd/conf/htpasswd 
AuthName "Authorized users only!" 
... 
</Directory> 

現在,我試圖開闢一定的路徑。 e.g http://project.com/shares/ *

這是虛擬主機設置

<VirtualHost *:80> 
DocumentRoot /var/to/cakephp/app 
Options FollowSymLinks 
ServerName project.com 
ServerAdmin ... 
DirectoryIndex index.php index.jsp index.htm index.html 
ErrorLog ... 
CustomLog ... 
</VirtualHost> 

我怎麼能這樣做?

這樣做只是刪除整個密碼保護

<Directory "/var/to/cakephp/app"> 
Options All 
AuthType None 
AllowOverride All 
Order allow,deny 
Allow from all 
</Directory> 

而且我不只是做

<Directory "/var/to/cakephp/app/shares"> 
</Directory> 

基本上htaccess的與我現在搞亂。

謝謝
三通

回答