Hi Ryan.

So, if I read your response correctly, what you're really saying is
that I should simply redo my repos structure, to allow the clients via
http to easily access the proj folders without the user needing to
enter the subfolders...

IE,

something like:

<Location /aaa>
  SVNPath /apps/CollegeDir/CollegeRepository/
</Location>

http://192.168.1.1/aaa/CollegeRoot/project1

so I'd have a CollegeRoot (or trunk) dir, and the projects under that...

that could work just as well...

I could then implement a user/passwd auth to restrict the user's
access to the given project, project/subfolder, etc.. which would
require the creation/implementation of the auth group file, the auth
user file, as well as the auth passwd file...

comments/thoughts..

thanks



On Sat, Mar 12, 2011 at 2:42 PM, Ryan Schmidt
<subversion-20...@ryandesign.com> wrote:
> On Mar 12, 2011, at 16:11, bruce wrote:
>
>> I've got a test svn/apache setup. The location block is:
>>
>> <Location /aaa>
>>   SVNPath /apps/CollegeDir/CollegeRepository/
>>   SVNListParentPath On
>> </Location>
>
> SVNListParentPath is not applicable unless you are using SVNParentPath (to 
> host multiple repositories); you're not; you're using SVNPath (to host a 
> single repository).
>
>
>> From the cmdline, the complete list of projects can be accessed via:
>>
>> svn list file:///apps/CollegeDir/CollegeRepository/trunk/apps/CollegeRoot
>
> Well, that would list the contents of the CollegeRoot folder in the apps 
> folder in the trunk folder of your repository. If that's where you've decided 
> you're going to put all your projects, then that's a correct statement.
>
> Note that file:///-protocol URLs should only be used for testing purposes. 
> For production use, use a Subversion server, either svnserve or apache with 
> mod_dav_svn.
>
>
>> A single project folder/files can be seen/accessed via
>>
>> svn list 
>> file:///apps/CollegeDir/CollegeRepository/trunk/apps/CollegeRoot/proj1
>>
>> The system/svn is setup to have a number of folders that can be
>> accessed if the user uses the url:
>>
>>  http://192.168.1.1/aaa/trunk/apps/CollegeRoot/
>
> ...the aforementioned projects, yes.
>
>
>> However, I'd like to have a way for the user to simply enter something
>> like http://aa/project such that the httpd/apache process would
>> internally insert the rest of the url to resolve to getting the
>> correct repository content (folder/files).
>>
>> I'm not sure if this is a rewrite issue, or if so, how to accomplish it.
>>
>> Basically, I'm trying to have the user enter something like:
>>
>> http://192.168.1.1/aaa/project1
>>
>> And have it resolve to something like
>>
>>  http://192.168.1.1/aaa/trunk/apps/CollegeRoot/project1
>>
>> If this is a mod rewrite issue, how would I implement it given that
>> i'm dealing with the svn/subversion process?
>
> If you want the projects in the repository at the paths you've indicated 
> above, then I don't think you're going to accomplish using these shorter 
> URLs, sorry. You cannot use mod_rewrite with Subversion; Subversion clients 
> do not follow redirects. If you ONLY care about these shorter URLs working in 
> a web browser, and DO NOT care about them working in a Subversion client, 
> then you could use mod_rewrite or RedirectMatch to do it.
>
>
>
>
>

Reply via email to