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

2011-06-24 Thread Joshua Davies
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@hostname repos]$ pwd
/var/svn/repos
[jdavies@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:


  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 ...


(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/ 
   - P roject2
   - 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.


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

2011-06-24 Thread Joshua Davies
Nope, here are my modules:

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

but thanks for the quick response!

On Fri, Jun 24, 2011 at 11:26 AM, Stefan Sperling  wrote:

> On Fri, Jun 24, 2011 at 11:05:32AM -0500, Joshua Davies wrote:
> > 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 <https://dev01.2xoffice.com/repos/README.txt>
> >- conf/ <https://dev01.2xoffice.com/repos/conf/>
> >- db/ <https://dev01.2xoffice.com/repos/db/>
> >- format <https://dev01.2xoffice.com/repos/format>
> >- hooks/ <https://dev01.2xoffice.com/repos/hooks/>
> >- P <https://dev01.2xoffice.com/repos/integration/>roject2
> >- locks/ <https://dev01.2xoffice.com/repos/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.
>
> It's a wild guess, but maybe you didn't load mod_dav_svn into Apache?
>



-- 
Managing Director - Architecture
2Xoffice.com
(214)636-2679


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

2011-06-24 Thread Joshua Davies
Ah... I never even thought of that.  You're right, it looks like that's what
happened.  Sorry for blaming Subversion for what appears to be an internal
mistake ; )

On Fri, Jun 24, 2011 at 11:32 AM, Bob Archer  wrote:

> > On Fri, Jun 24, 2011 at 11:26 AM, Stefan Sperling 
> > wrote:
> > On Fri, Jun 24, 2011 at 11:05:32AM -0500, Joshua Davies wrote:
> > > 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 <https://dev01.2xoffice.com/repos/README.txt>
> > >- conf/ <https://dev01.2xoffice.com/repos/conf/>
> > >- db/ <https://dev01.2xoffice.com/repos/db/>
> > >- format <https://dev01.2xoffice.com/repos/format>
> > >- hooks/ <https://dev01.2xoffice.com/repos/hooks/>
> > >- P <https://dev01.2xoffice.com/repos/integration/>roject2
> > >- locks/ <https://dev01.2xoffice.com/repos/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.
> > It's a wild guess, but maybe you didn't load mod_dav_svn into
> > Apache?
> >
> > Nope, here are my modules:
> >
> > LoadModule dav_svn_module modules/mod_dav_svn.so
> > LoadModule authz_svn_module   modules/mod_authz_svn.so
> >
> > but thanks for the quick response!
> >
>
> Can you use the svn cmd line client to list your repository using the file
> protocol. Perhaps someone imporated the repo folders into the repository?
>
> BOb
>
>


-- 
Managing Director - Architecture
2Xoffice.com
(214)636-2679