Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3430002
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:09:05+00:00 2026-05-18T07:09:05+00:00

I need simple ‘to-the-point’ tutorial or neat exemple of How to implement authorization for

  • 0

I need simple ‘to-the-point’ tutorial or neat exemple of How to implement authorization for paths (checkout diretories) out of a single Subversion repository, using WebSVN.

Lets say repository is /svn/repos/r_project
Two checkout (paths) from this repos are /svn/repos/path1 and /svn/repos/path2 …
I want to protect each path (directory) with a different username/password.

Subversion and WebSVN are installed on Unix Apache (redhat). Already i can see the two paths in the WebSVN repository front page – without any protection this is working fine.

I know how to protect individual web index page with .htpasswd but anything i have tried to protect individual paths in the repository through WebSVN page has failed.

Tx

[EDIT nov26]

Up to date situation to make it clear:
Paths i have:

Home path in unix: '/var/www/'
Path of WebSVN: '/var/www/websvn2'
Path to repository: '/svn/repos'
Created repository is '/svn/repos/r_project') // so r_project is the repository name 
Two checkout directories of that repository:'/svn/repos/path1' and '/svn/repos/path2'

In httpd.conf i have locations for SVN and WEBSVN (i do have the necessary modules):

<Location /repos>
  DAV svn
  SVNParentPath /var/www/svn/repos
  AuthType Basic
  AuthName "Subversion repository"
  AuthUserFile /etc/svn-auth-file
  Require valid-user
</Location>

<Location /websvn210/>
    Options FollowSymLinks
    AuthType Basic
    AuthName "Subversion Repository"
    Require valid-user
    AuthUserFile /etc/svn-auth-file
</Location>

For now, ‘svn-auth-file’ contains password for one user name. Put in ‘/etc’ directory.

In config.php file of WebSVN i have:

$config->parentPath("/var/www/svn/repos");  
$config->useAuthenticationFile('/etc/svn-auth-file'); // Global access file

I’m able to see checkout directories ‘path1’ and ‘path2’ as regular index page with files in the browser (ex: ‘http://mydomain/svn/repos/path1&#8217;). However, when i go for ‘http://mydomain/websvn210&#8217; in the browser i only get the login (ok) than an empty home page of WebSVN – that is, no repository or checkout paths!

That’s first problem: empty page.
Second, will be to have different login for each path.
Note: those paths (checkouts) are only for reading or downloading (no commit done from Subversion).

THanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T07:09:06+00:00Added an answer on May 18, 2026 at 7:09 am

    You might be looking for ‘authz‘. This is one of the many tutorials available.

    EDIT
    I think you’re mixing two things together which do not belong together. One way to access a subversion repository is via WebDAV, this seems to be working. WebSVN on the other hand is for repository browsing. You won’t be able to commit changes to your WebSVN URL.

    Your ‘SVNParentPath’ should point to the repository and not to the WebSVN directory.

    SVNParentPath /svn/repos
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a simple way to monitor multiple text log files distributed over a
I need a simple table with a user name and password field in MySQL.
I need a simple app to edit database tables. Are there any code generators
I need a simple window with three input boxes and three labels (login name,
I need a simple SQL to accomplish the below: Problem: When a petrol bunk
I need a simple function which will take a FileInfo and a destination_directory_name as
For a random event generator I'm writing I need a simple algorithm to generate
Well... that's it. I need something simple and reliable (doesn't have to have fancy
I need to create simple reusable javascript object publishing several methods and parameterized constructor.
I need a very simple and clear example of how to create an OCX

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.