<p>I have a <a href="http://www.visualsvn.com/server/" rel="nofollow noreferrer">VisualSVN Server</a> installed on a Windows server, serving several repositories.</p>

<p>Since the web-viewer built into VisualSVN server is a minimalistic subversion browser, I'd like to install <a href="http://websvn.tigris.org/" rel="nofollow noreferrer">WebSVN</a> on top of my repositories.</p>

<p>The problem, however, is that I can't seem to get authentication to work. Ideally I'd like my current repository authentication as specified in VisualSVN to work with WebSVN, so that though I see all the repository names in WebSVN, I can't actually browse into them without the right credentials.</p>

<p>By visiting the cached copy of the topmost link on <a href="http://www.google.com/search?q=WebSVN+authentication+with+IIS+and+VisualSVN" rel="nofollow noreferrer">this google query</a> you can see what I've found so far that looks promising.<br>
(the main blog page seems to have been destroyed, domain of the topmost page I'm referring to is the-wizzard.de)</p>

<p>There I found some php functions I could tack onto one of the php files in WebSVN. I followed the modifications there, but all I succeeded in doing was make WebSVN ask me for a username and password and no matter what I input, it won't let me in.</p>

<p>Unfortunately, php and apache is largely black magic to me.</p>

<p>So, has anyone successfully integrated WebSVN with VisualSVN hosted repositories?</p>

[{'answer_id': 233587, 'author': 'Kit Roed', 'author_id': 1339, 'author_profile': 'https://Stackoverflow.com/users/1339', 'pm_score': 2, 'selected': False, 'text': '<p>I\'m using VisualSVN Server and I just got done installing Trac.  My goal was to get a better web-based repository browser, and Trac is definitely one of the better ones I\'ve seen for Subversion.  Go to <a href="http://www.visualsvn.com/server/trac/" rel="nofollow noreferrer">http://www.visualsvn.com/server/trac/</a> installation is really quite straightforward.  Yes, Trac has a ticket tracking and a wiki system, which you may not be looking for, but the repository and log browser sell it for me.</p>\n\n<p>Now, I have found that it is possible to disable the wiki and ticket tracking systems that come with Trac through simply appending </p>\n\n<pre><code>[components]\ntrac.ticket.* = disabled\ntrac.wiki.* = disabled\n</code></pre>\n\n<p>to the end of the trac.ini configuration file.  This causes the start page of the wiki to throw an error that the wiki module cannot be found so you have to set Trac to open with either the Timeline (log view) or Repository Browser on startup by editing the trac.ini again by adding the following under the <strong><code>[trac]</code></strong> heading:</p>\n\n<p>for the log timeline as default</p>\n\n<pre><code>default_handler = TimelineModule\n</code></pre>\n\n<p>for the repository browser as default</p>\n\n<pre><code>default_handler = BrowserModule\n</code></pre>\n'}, {'answer_id': 256186, 'author': 'Jonas Oberschweiber', 'author_id': 1522, 'author_profile': 'https://Stackoverflow.com/users/1522', 'pm_score': 0, 'selected': False, 'text': '<p>I am the author of the article you mentioned. The information I published was only meant for WebSVN running on IIS. It is my understanding that the software should "just work" when you use PHP on Apache, although I have never set it up in that environment. Have you tried doing some "echo"-debugging (for the lack of a better term) to see where exactly the authentication fails?</p>\n'}, {'answer_id': 534581, 'author': 'Anthony Johnson', 'author_id': 23812, 'author_profile': 'https://Stackoverflow.com/users/23812', 'pm_score': 3, 'selected': False, 'text': '<p>I got WebSVN authentication working with VisualSVN server, albeit with a lot of hacking/trial-error customization of my own.</p>\n\n<p>Here\'s how I did it:</p>\n\n<ol>\n<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>\n<li><p>Extract the websvn folder to C:\\Program Files\\VisualSVN Server\\htdocs\\</p></li>\n<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>\n<li><p>Add the following to C:\\Program Files\\VisualSVN Server\\conf\\httpd-custom.conf : </p></li>\n</ol>\n\n<pre>\n# For PHP 5 do something like this:\nLoadModule php5_module "c:/php/php5apache2_2.dll"\nAddType application/x-httpd-php .php\n\n\n# configure the path to php.ini\nPHPIniDir "C:/php"\n\n&lt;IfModule dir_module&gt;\n   DirectoryIndex index.html index.php \n&lt;/IfModule&gt;\n\n&lt;Location /websvn/&gt;\n   Options FollowSymLinks\n   AuthType Basic\n   AuthName "Subversion Repository"\n   Require valid-user\n   AuthUserFile "C:/SVNRepositories/htpasswd"\n   AuthzSVNAccessFile "C:/SVNRepositories/authz"\n   SVNListParentPath on\n   SVNParentPath "C:/SVNRepositories/"\n&lt;/Location&gt;\n</pre>\n\n<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>\n\n<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>\n'}, {'answer_id': 2941178, 'author': 'MatthewMartin', 'author_id': 33264, 'author_profile': 'https://Stackoverflow.com/users/33264', 'pm_score': 1, 'selected': False, 'text': '<p>I got this to work with windows authentication (which is actually AuthType VisualSVN)  The trick is to comment out the svn auth and replace it with the same sort of auth text found in the main config file.  Thanks to Anthony Johnson for working out all the other details.</p>\n\n<pre><code># For PHP 5 do something like this:\nLoadModule php5_module "F:/wamp/bin/php/php5.3.0/php5apache2_2.dll"\nAddType application/x-httpd-php .php\n\n\n# configure the path to php.ini\nPHPIniDir "f:/wamp/bin/php/php5.3.0/"\n\n&lt;IfModule dir_module&gt;\n   DirectoryIndex index.html index.php \n&lt;/IfModule&gt;\n\n#Alias /websvn/ "F:/Program Files/VisualSVN Server/htdocs/websvn-2.3.1/" \n\n&lt;Location /websvn-2.3.1/&gt;\n   Options FollowSymLinks\n\n    AuthName "Subversion Repositories"\n    AuthType VisualSVN\n    AuthzVisualSVNAccessFile "F:/Repositories/authz-windows"\n    AuthnVisualSVNBasic on\n    AuthnVisualSVNIntegrated off\n    AuthnVisualSVNUPN Off\n   Require valid-user\n\n\n   SVNListParentPath on\n   SVNParentPath "f:/Repositories/"\n&lt;/Location&gt;\n</code></pre>\n'}, {'answer_id': 27379439, 'author': 'bahrep', 'author_id': 761095, 'author_profile': 'https://Stackoverflow.com/users/761095', 'pm_score': 1, 'selected': False, 'text': '<p>If you are looking for a web-based repository browser which is more feature-rich than the default one and you use VisualSVN Server, then upgrade to VisualSVN Server 3.2 or newer. </p>\n\n<p><a href="https://www.visualsvn.com/server/features/svn-web-interface/" rel="nofollow noreferrer">VisualSVN Server has a rich web interface for Subversion repositories</a>. Unlike WebSVN, VisualSVN Server\'s built-in web client works out of the box and does not require an administrator to perform any configuration tasks.</p>\n\n<p><em>You can see the live demo here: <a href="http://demo-server.visualsvn.com/!/" rel="nofollow noreferrer">http://demo-server.visualsvn.com/!/</a></em></p>\n\n<p><img src="https://i.stack.imgur.com/jni3O.png" alt="Subversion web user interface in VisualSVN Server"></p>\n'}]
['https://Stackoverflow.com/questions/17681', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/267/']