You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by bruce <be...@earthlink.net> on 2005/04/26 19:06:53 UTC

user access/auth question/issue...

hi...

in setting up gforge4/ViewCVS/SVN to deal with multiple projects where i
need tobe able to have directory specific access, i've devised the
following. i'm not sure if it's the best way, so i'm putting it out to the
gforge/ViewCVS/SVN lists.

my site domain, and scm domain are the same.

everything, at least for now seems to work. my question, are there better
ways to accomplish what i'm setting up...

thanks

bruce

--------------------------------------------------------------------
i have the following httpd.conf sections:
# HTTP
<VirtualHost 192.168.1.52:80>
	ServerName dev1.gotdns.com
	#ServerName gforge.mesa.com
	#ServerAlias app1.gotdns.com
	ServerAdmin webmaster@gforge.mesa.com
	DocumentRoot /var/www/gforge/www

<Directory /var/www/gforge/www>
  Options Indexes FollowSymlinks
  AllowOverride All
  order allow,deny
  allow from all
  php_admin_value include_path
"/var/www/gforge/etc/custom:/var/www/gforge:/var/www/gforge/www/include:."
  php_admin_value default_charset "UTF-8"
  php_admin_value register_globals "On"
</Directory>


	Alias /images/ /var/www/gforge/www/images/
	DirectoryIndex index.html index.php
	<IfModule mod_userdir.c>
		UserDir disabled
	</IfModule>

	php_admin_value default_charset "UTF-8"

	<Directory /var/www/gforge/www>
		Include   /var/www/gforge/etc/httpd.secrets
	</Directory>

	ScriptAliasMatch ^/plugins/([^/]*)/cgi-bin/(.*)
/usr/lib/gforge/plugins/$1/cgi-bin/$2

	# Projects and Users script
	<Location /projects>
		ForceType application/x-httpd-php
	</Location>
	<Location /users>
		ForceType application/x-httpd-php
	</Location>

  <Location /plugins/scmsvn/cgi-bin/viewcvs.cgi/forge>
     SVNPath /gforge-svn/forge/svn
     AuthzSVNAccessFile /gforge-svn/svn-accesspolicy

     AuthType Basic
     AuthName "Forge Repository"
     AuthUserFile /gforge-svn/svn-auth
     Require valid-user
  </Location>

  <Location /plugins/scmsvn/cgi-bin/viewcvs.cgi/jupiter>
     SVNPath /gforge-svn/jupiter/svn
     AuthzSVNAccessFile /gforge-svn/svn-accesspolicy

     AuthType Basic
     AuthName "Forge Repository"
     AuthUserFile /gforge-svn/svn-auth
     Require valid-user
  </Location>

  <Location /plugins/scmsvn/cgi-bin/viewcvs.cgi/troy>
     SVNPath /gforge-svn/troy/svn
     AuthzSVNAccessFile /gforge-svn/svn-accesspolicy

     AuthType Basic
     AuthName "Forge Repository"
     AuthUserFile /gforge-svn/svn-auth
     Require valid-user
  </Location>


	# 404 Error document
	ErrorDocument 404 /404.php
	LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
#	CustomLog "|/usr/sbin/cronolog
/var/www/gforge/var/log/#gforge/%Y/%m/%d/gforge.log" gforge

	# GForge without the DNS delegation
	# Project home pages are in a virtual /www/<group> location
	AliasMatch ^/www/([^/]*)/(.*) /home/groups/$1/htdocs/$2
	ScriptAliasMatch ^/([^/]*)/cgi-bin/(.*) /home/groups/$1/cgi-bin/$2
	<Directory /home/groups>
		Options Indexes FollowSymlinks
		AllowOverride All
		order allow,deny
		allow from all
	</Directory>

	# Ensure that we don't try to use SSL on SSL Servers
	<IfModule apache_ssl.c>
		SSLDisable
	</IfModule>
</VirtualHost>

------------------------------------------------
the viewcvs project locations are:

            athena: /gforge-svn/athena/svn,
            troy: /gforge-svn/troy/svn,
            mars: /gforge-svn/mars/svn,

----------------------------------------------
the auth file is:

#in the forge repository
#

#group designations
[groups]
forge-developers   = test
jupiter-developers =
troy-developers    =



#project designations
[forge:/]
test = rw

[forge:/branches]
test =


[jupiter:/branches]
test = rw


[troy:/]
test =

--------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org