Results 1 to 3 of 3
  1. #1
    Join Date
    May 2001

    .htaccess wont' work

    My head is splitting over this thing. I've installed Subversion in my system and it works fine. However I want to password-protect the /repos/ directory so that random users can't just open their browser to and view all of my repository files.

    I tried password-protecting the "repos" directory, but no matter how hard I try it doesn't work. I think it has to do with it being a "Location" rather than a "Directory". Can someone help me fix this so that a .htaccess authentication file within the /repos/ folder will work?

        ServerAdmin [email protected]
        DocumentRoot /www/repos/htdocs
        ErrorLog logs/svn-error_log
        CustomLog logs/svn-access_log combined
            <Location /repos>
            DAV svn
             SVNParentPath /www/subversion
                #Limit write permission to list of valid users.
               <LimitExcept GET PROPFIND OPTIONS REPORT>
                  #Require SSL connection for password protection.   
                  AuthType Basic
                  AuthName "Authorization Realm"
                  AuthUserFile /www/auth/.passwd
                  Require valid-user
    SSLEngine on                  
    SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
    SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
    <Directory />
        AllowOverride FileInfo AuthConfig Limit
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

  2. #2
    Join Date
    Dec 2001
    NYC, NY
    add the same <directory> statement inside the <virtualhost> entry restart apache and it should work
    Blog your life away

  3. #3
    Join Date
    May 2001
    I did that too and still it didn't work. Any other ideas?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts