I can't commit .htaccess files from my Windows SVN client (TortoiseSVN). The error that is returned is:
Could not read status line: Existing connection was forcibly closed by the remote host.
And here is basically what my vhost looks like in Apache:
<VirtualHost *:80>
DocumentRoot /var/www/mydomain.com/legacy/trunk/html
ServerName mydomain.com
<Directory /var/www/>
FileETag MTime Size
AllowOverride All
</Directory>
<Directory /var/www/tools>
AllowOverride All
</Directory>
<Location /svn>
DAV svn
SVNPath /var/svn/repos/MyRepo
# Limit write permission to list of valid users.
# Require SSL connection for password protection.
# SSLRequireSSL
ErrorDocument 404 default
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /etc/httpd/conf/.htpasswd
Require valid-user
</Location>
</VirtualHost>
How can this be changed, so that .htaccess files can be committed?
Just found out how to fix that issue - just put this into your virtual host configuration in order to override global http.conf:
<Files ~ "^\.ht">
Order allow,deny
Allow from all
Satisfy All
</Files>
Source
THIS is the correct answer for sure (tested), but the op abandoned his question :/
Subversion is being served from an Apache server that's also using .htaccess for access control, so it might be preventing you from doing something you don't quite intend.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With