我們爲apache上的多個項目和業務文件託管一個svn存儲庫。這是由多個程序員和一些項目文件夾也由客戶訪問。例如佈局:svn.accessfile困難
svn/ourcompany/business
svn/ourcompany/projects
svn/ourcompany/projects/proj1
svn/ourcompany/projects/proj2
svn/ourcompany/projects/proj3
此前我們svn.accessfile看起來如下:
[groups]
admin = jd
programmer = jd,pr1,pr2
[ourcompany:/]
@admin = rw
[ourcompany:/business]
@admin = rw
[ourcompany:/projects]
@admin = rw
@programmer = rw
[ourcompany:/projects/proj1]
client1a = rw
client1b = rw
webclient = rw
今天我們發現,這種設置會導致403錯誤webclient1對我們公司面試:/項目/ proj1
經過一些研究承包商建議添加
[groups]
admin = jd
programmer = jd,pr1,pr2
[ourcompany:/]
* = r
@admin = rw
[ourcompany:/business]
* =
@admin = rw
[ourcompany:/projects]
@admin = rw
@programmer = rw
[ourcompany:/projects/proj1]
client1a = rw
client1b = rw
webclient = rw
但現在意味着我需要要添加
*=
到項目文件夾中的每個項目???
有人可以建議在svn.accessfile中的權限如何在文件夾層次結構中工作嗎?下面
<VirtualHost ipadress:80>
ServerName subversion.ourcompany.com
ServerAdmin [email protected]
DocumentRoot /var/www/subversion.ourcompany.com
DavLockDB /var/lock/apache2/DavLock
<Location /svn>
DAV svn
SVNParentPath /var/svn
SVNListParentPath on
SVNAutoversioning on
SVNIndexXSLT "/repos-web/view/repos.xsl"
#ModMimeUsePathInfo on
AuthzSVNAccessFile /etc/apache2/svn.accessfile
AuthType Basic
AuthName "SVN"
AuthUserFile /etc/apache2/svn.passwd
Require valid-user
# compress as much as possible
SetOutputFilter DEFLATE
SetInputFilter DEFLATE
# Don't compress images
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
</Location>
<IfModule mpm_itk_module>
AssignUserId www-data www-data
</IfModule>
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%) %s' deflate
CustomLog /var/log/apache2/svn-deflate.log deflate
CustomLog /var/log/apache2/svn-access.log "%t %u %{SVN-ACTION}e" env=SVN-ACTION
ErrorLog /var/log/apache2/svn-error.log
</VirtualHost>
Apache虛擬主機,我們想實現什麼:
Web客戶端來訪問我們公司面試:只/項目/ proj1,並有我們公司面試沒有讀訪問:/項目,後者可能是通過將一個* =放入公司的/子項目的每個子文件夾中來實現,但這並不可行。
您能否包含您想要達到的整體信息?哪些組應具有哪些文件夾的訪問權限?目前有很多信息,但我沒有看到你想要達到的目標。請將其添加到問題中,我們應該能夠提出一個替代訪問文件。 – mliebelt 2011-09-13 22:32:00
已更新的問題,謝謝你回到我身邊 – jdog 2011-09-14 08:40:17