Why is Subversion unable to commit .htaccess files?

I cannot commit .htaccess files from my Windows SVN client (TortoiseSVN). Return Error:

Failed to read the status bar: an 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?

+3
source share
6 answers

We just figured out how to fix this problem - just put this in your virtual host configuration to override the global http.conf:

<Files ~ "^\.ht">
    Order allow,deny
    Allow from all
    Satisfy All
</Files>

Source

, (), op :/

+5

Subversion Apache, .htaccess , , .

+1

apache. , svn .

0

apache. default/etc/apache2/modules.d/00_default_settings.conf( gentoo) FilesMatch "^.ht", Deny from all.

grep -r -i "\\.ht" * /etc/apache /etc/httpd /etc/apache, , .

AccessFileName, grep.

0

, TortoiseSVN?

SVN , TortoiseSVN, ( ?), SVN TortoiseSVN, .

TortoiseSVN -> About , SVN . , / .

0
<Files ~ "^\.ht">
    Order allow,deny
    Allow from all
    Satisfy All
</Files>

. plesk.

vhost,

/var/www/vhosts/system/[your domain]/conf

, conf

/usr/local/psa/admin/sbin/httpdmng  --reconfigure-domain [your domain]

comit!

, , , plesk

0

Source: https://habr.com/ru/post/1720223/


All Articles