Apache config: Permissions, Directories and Locations

Posted by James Murphy on Server Fault See other posts from Server Fault or by James Murphy
Published on 2010-09-17T06:20:18Z Indexed on 2012/04/03 23:31 UTC
Read the original article Hit count: 255

Filed under:

I'm trying to get my head around apache configuration to fix a problem I'm having but after a few hours I've decided to ask here.

This is what I've got at the moment:

DocumentRoot "/var/www/html"

<Directory />
        Options None
        AllowOverride None
        Deny from all
</Directory>

<Directory /var/svn>
        Options FollowSymLinks
        AllowOverride None
        Allow from all
</Directory>

<Directory /opt/hg>
        Options FollowSymLinks
        AllowOverride None
        Allow from all
</Directory>

<Location /hg>
        AuthType Digest
        AuthName "Engage HG"
        AuthDigestProvider file
        AuthUserFile /opt/hg/hgweb.users
        Require valid-user
</Location>

WSGISocketPrefix /var/run/wsgi
WSGIDaemonProcess hg processes=3 threads=15
WSGIProcessGroup hg
WSGIScriptAlias /hg "/opt/hg/hgweb.wsgi"

<Location /svn>
        DAV svn
        SVNPath /var/svn/repos

        AuthType Basic
        AuthName "Subversion"
        AuthUserFile /etc/httpd/conf/users
        require valid-user
</Location>

I'm trying to get my head around how it's all laid out and how directories relate to locations/etc

For /hg I get asked for a password but to /svn I get a 403 forbidden...

the error I get is:

[client 10.80.10.169] client denied by server configuration: /var/www/html/svn

When I remove the entry it works fine..

I can't figure out how to get it linking to the /var/svn directory

© Server Fault or respective owner

Related posts about apache2