Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I got WebSVN authentication working with VisualSVN server, albeit with a lot of hacking/trial-error customization of my own.</p> <p>Here's how I did it:</p> <ol> <li><p>If you haven't already, install PHP manually by downloading the zip file and going through the online php manual install instructions. I installed PHP to C:\PHP</p></li> <li><p>Extract the websvn folder to C:\Program Files\VisualSVN Server\htdocs\</p></li> <li><p>Go through the steps of configuring the websvn directory, i.e. rename configdist.php to config, etc. My repositories were located in C:\SVNRepositories, so to configure the authentication file, I set the config.php line so: $config->useAuthenticationFile('C:/SVNRepositories/authz'); // Global access file</p></li> <li><p>Add the following to C:\Program Files\VisualSVN Server\conf\httpd-custom.conf : </p></li> </ol> <pre> # For PHP 5 do something like this: LoadModule php5_module "c:/php/php5apache2_2.dll" AddType application/x-httpd-php .php # configure the path to php.ini PHPIniDir "C:/php" &lt;IfModule dir_module&gt; DirectoryIndex index.html index.php &lt;/IfModule&gt; &lt;Location /websvn/&gt; Options FollowSymLinks AuthType Basic AuthName "Subversion Repository" Require valid-user AuthUserFile "C:/SVNRepositories/htpasswd" AuthzSVNAccessFile "C:/SVNRepositories/authz" SVNListParentPath on SVNParentPath "C:/SVNRepositories/" &lt;/Location&gt; </pre> <p>This worked for me, and websvn will only show those directories that are authorized for a given user. Note that in order for it to work right, you have to provide "Main Level" access to everybody, and then disable access to certain sub-directories for certain users. For example, I have one user who doesn't have main level access, but does have access to a sub-level. Unfortunately, this person can't see anything in websvn, even if he links directly to filedetails.php for a file he's authorized to see. In my case it's not a big deal because I don't want him accessing websvn anyway, but it's something you'll want to know.</p> <p>Also, this sets the server up for an ssl connection, so once you've set it up, the address will be and https:// address, not the regular http://.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload