所以我試圖安裝使用具有Apache2的mod_dav的Subversion服務器,但是當我嘗試連接它給了我一個403 Forbidden錯誤。這裏是我的默認虛擬主機文件SVN(mod_dav的)403 FORBIDDEN OPTION請求
NameVirtualHost *:443 NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin [email protected] ServerName hcs-dev DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> <Location /repos/> DAV On DAV svn AuthzSVNAccessFile /svn_authz Satisfy Any Require valid-user SVNParentPath /repos/ AuthType Digest AuthName "stevesvn" AuthUserFile /dig-pw </Location> </VirtualHost> <VirtualHost *:443> SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.pem ErrorLog /var/log/apache2/error.log <Location /repos/> DAV On DAV svn AuthType Basic AuthName "stevesvn" AuthUserFile /svn-pw.pw AuthzSVNAccessFile /svn_authz Require valid-user SVNParentPath /repos/ </Location> </VirtualHost>
任何想法可能是什麼原因造成這種情況?
你故意使用不同的密碼文件嗎?/dig-pw爲:80,/svn-pw.pw爲:443?故意放置在您的系統上是否被讀取? Apache可以正確讀取嗎? – mark 2008-12-22 14:56:25