Jump to content

Svndav


freelance84

Recommended Posts

I think my server has been hacked but I cannot be sure.

I had installed and got running svn on ubuntu 12.04. After installing I got one machine to checkout the repository on username joe. Last night I checked out the repository on my own machine on username john. But suddenly today I get this message when trying to commit:

'ERROR Repository moved temporarily to 'http://www.mydomain.com'; please relocate'

I don't know where to start looking here, some search results indicate it might be a hook script, other say sloppy config files.

I have svn installed with webDAV. The config file is: /etc/apache2/mods-available/dav_svn.conf:

<Location /backuprepos/filesystem>

DAV svn

SVNPath /home/backuprepos/filesystem

AuthType Basic

AuthName "filesystem subversion repository"

AuthUserFile /etc/subversion/passwd

Require valid-user

</Location>

 

The passwords I added to the following file:

htpasswd -c /etc/subversion/passwd user_name

 

Really need to some help here, this happened to me before, i removed the .svn repository made a new one but I kept getting the same error; so ended up rebuilding my server based on an image.

 

Has anyone dealt and beaten this problem before?

Link to comment
https://forums.phpfreaks.com/topic/270603-svndav/
Share on other sites

At long last I found the answer to my problem.

We had a htaccess blanket rule for all 404's which redirected to the index

SVN apparently uses 404 (not found) errors in order to add new resources. Thus the 404 redirected the svn to the root. I needed to allow this one to pass through instead of making a redirection.

To test this i removed the said htaccess file and all started working fine.

Link to comment
https://forums.phpfreaks.com/topic/270603-svndav/#findComment-1391900
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.