Question

I've used VisualSVN server since a few years, and since a while i would like to hide repository list in https access.

When you log into visualsvn in https, it redirects you to "/svn/" subfolder and displays the list of repositories as links.

I would like to hide this page, to enforce the users to type the name of repository they want to enter in address bar, then allow them to browse it normally (exactly like it currently does). I don't want to close remote http access, just to hide the repository listing at login, even for admins, just to hide the full repository list (or protect it behind a hidden page, for example by renaming the "/svn/" first page and disable automatic redirect on it).

I'm sure it is possible by tweaking .htaccess or templates in VSVN configuration files, but I didn't found how to do that cleanly since i'm not used to apache configuration.

Thank you very much

Était-ce utile?

La solution

Thank you Lazy badger for your link. As this not a specific "VisualSVN" talk I missed it when I was looking for an answer. This answer is a bit simpler than what I was expecting but it will do the trick.

So i'm answering myself :

Just turn to "off" the "SVNListParentPath" line in C:\Program Files (x86)\VisualSVN Server\conf\httpd.conf (default path).

Rather than the repositories listing, it will display a "forbidden" page.

I've also did something else : I've modified the "index.html" in C:\Program Files (x86)\VisualSVN Server\htdocs, to disable the automatic redirect to "/svn/" (first meta above body in the file) and to remove anything which tells there is SVN repositories behind the url.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top