Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running SVN 1.6.3 over Apache 2.2 on Windows, using the most recent CollabNet Windows builds. I'm using mod_auth_sspi and mod_ssl to secure my connections and perform authorization. On small checkins and imports, none of my users have any problems doing their work. But when importing or checking in a large number of files, users get prompted for their credentials (which the server promptly rejects), followed by the error:

PUT of <path and filename> 
authorization failed: Could not authenticate to server: rejected Basic
challenge (https://<my server name>)

We've tried using both the command line client and TortoiseSVN.

This error seems to be related to the number of files checked in, NOT the aggregate size of content committed. For example, if I try to check in 90 1-byte .txt files, the import will fail as described. It's not always 90 files -- I think it has something to do with the aggregate size of the filenames. I have this nagging feeling that it SVN is trying to jam all of the filenames into a single HTTP request header or something, and Apache is rejecting it somehow.

Not that I can examine what's going on at the HTTP level using Wireshark, since everything is encrypted via HTTPS. Here's my config file, less any comments. Has anyone run into this before? Any suggestions?

ThreadsPerChild 250
MaxRequestsPerChild  0

ServerRoot "C:\Program Files\CollabNet Subversion Server/httpd"

Listen 443

LoadModule actions_module modules/
LoadModule alias_module modules/
LoadModule asis_module modules/
LoadModule auth_basic_module modules/
LoadModule authn_default_module modules/
LoadModule authn_file_module modules/
LoadModule authz_default_module modules/
LoadModule authz_groupfile_module modules/
LoadModule authz_host_module modules/
LoadModule authz_user_module modules/
LoadModule autoindex_module modules/
LoadModule cgi_module modules/
LoadModule dir_module modules/
LoadModule env_module modules/
LoadModule imagemap_module modules/
LoadModule include_module modules/
LoadModule isapi_module modules/
LoadModule log_config_module modules/
LoadModule mime_module modules/
LoadModule proxy_module modules/
LoadModule negotiation_module modules/
LoadModule setenvif_module modules/
LoadModule userdir_module modules/
LoadModule ssl_module modules/
LoadModule dav_module         modules/
LoadModule dav_svn_module     modules/
LoadModule sspi_auth_module   modules/
LoadModule authz_svn_module   modules/

ServerAdmin localhost@localdomain


DocumentRoot "C:\Program Files\CollabNet Subversion Server/httpd/htdocs"

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all
    Satisfy all

<Directory "C:\Program Files\CollabNet Subversion Server/httpd/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

<IfModule dir_module>
    DirectoryIndex index.html

<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all

ErrorLog logs/error.log
LogLevel warn

<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

    CustomLog logs/access.log common

<IfModule alias_module>  
    ScriptAlias /cgi-bin/ "C:\Program Files\CollabNet Subversion Server/httpd/cgi-bin/"
<Directory "C:\Program Files\CollabNet Subversion Server/httpd/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all

DefaultType text/plain

<IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin

<Location /svn>
   DAV svn
   SVNParentPath D:\repository
   AuthName "Subversion repository"
   AuthType SSPI
   SSPIAuth On
   SSPIAuthoritative On
   SSPIDomain NA
   SSPIOfferBasic On
   Require valid-user   

   SVNAutoVersioning on
   ModMimeUsePathInfo on
   AuthzSVNAccessFile "d:/repository/access-file.txt"

<VirtualHost *:443 >
    DocumentRoot d:\repository
    SSLEngine On
    SSLCertificateFile conf/ssl.crt/server.crt
    SSLCertificateKeyFile conf/ssl.crt/server.key
share|improve this question
up vote 2 down vote accepted

It turns out that I needed to add this line to httpd.conf (I added it to the top so it would apply to all directories)

MaxKeepAliveRequests 0

and, for good measure, I added

KeepAlive On

just in case they decide to get all smart on me in the next version of httpd and default it to Off.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.