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

Re: How am I supposed to import my project now?

From: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Sun, 29 Mar 2009 00:54:58 +0300

Greetings, Andrey Repin!

AR> Ideas?

``Despite the tons of examples and docs, mod_rewrite is voodoo. Damned cool voodoo, but still voodoo.''
(q) Brian Moore

Aside the simple fact that THIS is an obvious BUG...
Key word was "passthrough", look the second RewriteRule.

<VirtualHost *>
    ServerName svn.mydomain.local
    ServerAlias svn.example.org

    DocumentRoot "C:/home/svn"
    AddDefaultCharset utf-8

    ErrorLog "C:/home/svn/.log/error_log"
    CustomLog "C:/home/svn/.log/access_log" common env=!SVN-ACTION
    CustomLog "C:/home/svn/.log/svn_access_log" svn env=SVN-ACTION

    <IfModule rewrite_module>
        RewriteLog "C:/home/svn/.log/rewrite_log"
        RewriteLogLevel 0

        RewriteEngine On

        # Prevent from accessing files beginning with dot in any cases
        RewriteRule "^/\..*" - [forbidden,last]

        # Fool the SVN about requested path if it's a repository root
        RewriteCond "%{REQUEST_METHOD}" !"^(GET|POST|HEAD)$"
        RewriteCond "%{REQUEST_FILENAME}" "^/([^/\.]+)$"
        RewriteCond "C:/home/svn/%1" -d
        RewriteRule "^/([^/\.]+)$" "/$1/" [passthrough]

        # Redirect access from the docroot to the actual website
        RewriteCond "%{REQUEST_METHOD}" "^(GET|POST|HEAD)$"
        RewriteCond "%{IS_SUBREQ}" "false"
        RewriteRule "^/(index\..*)?$" "http://www.example.org/svn/$1" [nosubreq,redirect=permanent,qsappend,last]

        # Explained 404 for nonexistent repos.
        RewriteCond "%{IS_SUBREQ}" "false"
        RewriteCond "%{REQUEST_FILENAME}" "^/([^/\.]+)(?:/.*)?$"
        RewriteCond "C:/home/svn/%1" !-d
        RewriteRule ".*" - [nosubreq,redirect=404,last]
    </IfModule>

    <Location "/">
# AllowOverride Limit AuthConfig
# Options None
        Order allow,deny
        Allow from 192.168.1.10

        <IfModule dav_svn_module>
            DAV svn
            SVNParentPath "C:/home/svn"
        </IfModule>

        <IfModule sspi_auth_module>
            Allow from all

            AuthName "Subversion repository"
            AuthType SSPI
            SSPIAuth On
            SSPIAuthoritative On
            SSPIOfferBasic On
            SSPIOmitDomain On
            SSPIUsernameCase lower
            SSPIBasicPreferred On

            # only developers may access the repository
            Require group "DAEMON1\CVS"

            # And they should obey to SVN user permissions file
            <IfModule authz_svn_module>
# AuthzSVNAccessFile /path/to/access/file
            </IfModule>
        </IfModule>
    </Location>
</VirtualHost>

--
WBR,
 Andrey Repin (anrdaemon_at_freemail.ru) 29.03.2009, <0:36>
Sorry for my terrible english...
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1461625
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-29 17:36:24 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.