[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Apache is exposing my Subversion repository internals (e.g. conf, db, hooks, etc.)

From: Andy Levy <andy.levy_at_gmail.com>
Date: Fri, 24 Jun 2011 12:26:30 -0400

On Fri, Jun 24, 2011 at 12:05, Joshua Davies <joshua.davies_at_2xoffice.com> wrote:
> I'm new to Subversion repository administration - after reading the O'Reilly
> book "Version Control with Subversion", and following the instructions there
> and on the web site, I've got a repository installed under "/var/svn/repos":
>
> [jdavies_at_hostname repos]$ pwd
> /var/svn/repos
> [jdavies_at_hostname repos]$ ls
> README.txt  conf  dav  db  format  hooks  locks
> I want to expose this over HTTP, so I've added the following to my Apache
> config:
> <Location /repos>
>   DAV svn
>   SVNPath /var/svn/repos
>   AuthType Basic
>   AuthName "Subversion Repository"
>   AuthUserFile /path/to/auth-file
>   Require valid-user
>   Order deny,allow
>   Deny from all
>   Allow from ...
>   Allow from ...
>   Allow from ...
> </Location>
> (slightly edited, of course).
> Everything seems to be working, but when I load my repository from a web
> server - e.g.
> https://hostname/repos
> I see my projects listed, along with the Subversion repository internals:
>
> repos - Revision 64: /
>
> Project1
> README.txt
> conf/
> db/
> format
> hooks/
> Project2
> locks/
> Project3
>
> What have I gotten wrong here?  I'm sure there's a way to have only the
> projects, and not the repository internals, exposed.

This looks like someone has committed a repository database (the
results of svnadmin create) to your repository. Check the log of your
repository, it should indicate when & what happens.
Received on 2011-06-24 18:27:41 CEST

This is an archived mail posted to the Subversion Users mailing list.