You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Douglas WF Acheson <dw...@rogers.com> on 2006/12/08 05:27:59 UTC

[users@httpd] help with location

Hello,

I have configured a virtual server for scm.b.com to house my svn repository via web_dav (hope the lingo is okay).  I have it working and here is the config file
 
<VirtualHost 192.168.1.2>
    CustomLog logs/scmAccess.log dwfa
    ErrorLog  logs/scmError.log

    DocumentRoot "/usr/local/scm/svn/html"
    <Directory "/usr/local/scm/svn/html">
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    <Location />
        DAV svn
        SVNParentPath /usr/local/scm/svn/repositories
    </Location>
    ServerName scm.b.com
</VirtualHost>

I have adjusted my dns for the correct entries.   have created a few web pages to administer my svn repo and projects.   What I would like to do is have the admin pages accessible off the following url
http://scm.b.com/admin 

The problem is I am not sure how to achieve this.  Anyone have any ideas ...

Currently using
Apache 2.2.3 (64 bit custom built)
CentOS v4.4


Thx in advance
dwfa



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] help with location

Posted by Joshua Slive <jo...@slive.ca>.
On 12/7/06, Douglas WF Acheson <dw...@rogers.com> wrote:
> Hello,
>
> I have configured a virtual server for scm.b.com to house my svn repository via web_dav (hope the lingo is okay).  I have it working and here is the config file
>
> <VirtualHost 192.168.1.2>
>     CustomLog logs/scmAccess.log dwfa
>     ErrorLog  logs/scmError.log
>
>     DocumentRoot "/usr/local/scm/svn/html"
>     <Directory "/usr/local/scm/svn/html">
>         Options Indexes FollowSymLinks
>         AllowOverride None
>         Order allow,deny
>         Allow from all
>     </Directory>
>
>     <Location />
>         DAV svn
>         SVNParentPath /usr/local/scm/svn/repositories
>     </Location>
>     ServerName scm.b.com
> </VirtualHost>
>
> I have adjusted my dns for the correct entries.   have created a few web pages to administer my svn repo and projects.   What I would like to do is have the admin pages accessible off the following url
> http://scm.b.com/admin
>
> The problem is I am not sure how to achieve this.  Anyone have any ideas ...

You'll need to start by excluding "admin" from the paths grabbed by
svn.  Replace <Location /> with something like <LocationMatch
/(?!admin)>.  Then you can place the admin webpages directly under
/usr/local/scm/svn/html/admin or use an Alias to place them elsewhere.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org