Why doesn't Subversion allow to commit .htaccess files?

坚强是说给别人听的谎言 提交于 2019-12-01 21:06:19

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.

check the apache error log file. You might see additional info about why the svn server failed to finish the commit.

Check other apache config files. In my default /etc/apache2/modules.d/00_default_settings.conf (on a gentoo install), I have a FilesMatch "^.ht" section that does Deny from all.

I'd suggest running a grep -r -i "\\.ht" * from the /etc/apache or /etc/httpd or /etc/apache directory, to see what you come up with.

It may also be an AccessFileName directive, so grep for that too.

Are other files committing from TortoiseSVN?

If the commit is working from an SVN client on the same box as TortoiseSVN on the same working copy (can you verify?), then my guess would be different SVN and TortoiseSVN client versions causing the problem.

TortoiseSVN -> About will report the SVN client version is was built with. Check that your client/server versions are compatible.

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

This worked for me too. With a slight complexity I was doing it on a plesk server.

After adding above lines to my vhost file created in

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

I ran following to rebuild the conf files

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

and the comit worked!

Thanks, hope this helps people using plesk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!