/svn this url was not found on this server

I've followed the installation instructions for subversion. I can see the modules, I can create repositories, assign users etc. However I cannot browse to the url http://mydomain.com/svn as firstly the wordpress installation rewrites everything thus I had to exclude it with:

Rewritecond %{THE_REQUEST} svn Rewriterule . - [L]

However no matter what I do, I cannot connect or see the SVN. Not direct via a browser, nor via a client like dreamweaver cc....

Can you provide further pointers as to where there may be further configuration required?

Thanks JP

Status: 
Closed (fixed)

Comments

What happens when you try to connect to your SVN repository? Do you get an error of some sort? If so, what is the error you're seeing?

When going direct via the browser I get: The requested URL /svn/ was not found on this server.

When going via Dreamweaver I get Server and project are not accessible

What output do you receive if you run this command:

grep -i svn /etc/apache2/sites-enabled/*

I'm interested in seeing if the .conf file for this particular domain has a variety of SVN related lines within it.

Hi,

The output of that command is:

/etc/apache2/sites-enabled/ict22.co.uk.conf:<Location /svn>
/etc/apache2/sites-enabled/ict22.co.uk.conf:DAV svn
/etc/apache2/sites-enabled/ict22.co.uk.conf:SVNParentPath /home/ictcouk/svn
/etc/apache2/sites-enabled/ict22.co.uk.conf:AuthUserFile /home/ictcouk/etc/svn.basic.passwd
/etc/apache2/sites-enabled/ict22.co.uk.conf:AuthzSVNAccessFile /home/ictcouk/etc/svn-access.conf
/etc/apache2/sites-enabled/ict22.co.uk.conf:ProxyPass /svn/ !
/etc/apache2/sites-enabled/ict22.co.uk.conf:ProxyPassReverse /svn/ !

This is spot on as I have only got it enabled for http://ict22.co.uk which has that userid.

svn-access.conf has

[daycalc:/]
dev = rw

Which is again what I would expect as it is the only project, and the only user assigned.

And ict22.co.uk.conf has

<VirtualHost 78.46.77.240:80>
SuexecUserGroup "#1014" "#1004"
ServerName ict22.co.uk
ServerAlias www.ict22.co.uk
ServerAlias webmail.ict22.co.uk
ServerAlias admin.ict22.co.uk
DocumentRoot /home/ictcouk/public_html
ErrorLog /var/log/virtualmin/ict22.co.uk_error_log
CustomLog /var/log/virtualmin/ict22.co.uk_access_log combined
ScriptAlias /cgi-bin/ /home/ictcouk/cgi-bin/
ScriptAlias /awstats/ /home/ictcouk/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/ictcouk/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/ictcouk/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/ictcouk/fcgi-bin/php5.fcgi .php5
AddType application/x-httpd-ruby .rb
AddType application/x-httpd-ruby .rbx
Action application/x-httpd-ruby /cgi-bin/ruby.cgi
</Directory>
<Directory /home/ictcouk/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.ict22.co.uk
RewriteRule ^(.*) https://ict22.co.uk:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.ict22.co.uk
RewriteRule ^(.*) https://ict22.co.uk:10000/ [R]
RemoveHandler .php
RemoveHandler .php5
php_admin_value engine Off
IPCCommTimeout 10000
FcgidMaxRequestLen 1073741824
<Files awstats.pl>
AuthName "ict22.co.uk statistics"
AuthType Basic
AuthUserFile /home/ictcouk/.awstats-htpasswd
require valid-user
</Files>
RedirectMatch /cgi-bin/mailman/([^/\.]*)(.cgi)?(.*) https://ict22.co.uk:10000/virtualmin-mailman/unauthenticated/$1.cgi$3
RedirectMatch /mailman/([^/\.]*)(.cgi)?(.*) https://ict22.co.uk:10000/virtualmin-mailman/unauthenticated/$1.cgi$3
Alias /pipermail /var/lib/mailman/archives/public
php_value memory_limit 32M
<Location /svn>
DAV svn
SVNParentPath /home/ictcouk/svn
AuthType Basic
AuthName ict22.co.uk
AuthUserFile /home/ictcouk/etc/svn.basic.passwd
Require valid-user
AuthzSVNAccessFile /home/ictcouk/etc/svn-access.conf
Satisfy Any
RewriteEngine off
ErrorDocument 404 default
</Location>
ProxyPass /svn/ !
ProxyPassReverse /svn/ !
<Proxy *>
allow from all
</Proxy>
</VirtualHost>

Thanks for your help so far...

I've solved it :) The key problem was that mod authz_svn wasn't loaded on the Apache2 server. Further more the default script doesn't seem to work on a full svn. You have to specify the project otherwise you get the error...Which is fine for me.

How did you fix this problem ? I been pulling my hair and have the same problem.

He solved it by loading the authz_svn Apache module (which, on Ubuntu 12.04, is done by running the command "a2enmod dav_svn", and then restarting Apache).

Tried running the command and said Module Dav already enabled.

Im at loss.

It seems like i have the same exact problem to begin with.

Just to clarify -- when you ran that command, you ran it with "dav_svn", and not just "dav", correct?

If so -- what output do you see if you run this command:

ls /etc/apache2/mods-enabled/

This is what i get from the command you gave.

actions.conf cgi.load mime.conf reqtimeout.load actions.load dav_fs.conf mime.load rewrite.load alias.conf dav_fs.load negotiation.conf ruby.load alias.load dav.load negotiation.load setenvif.conf auth_basic.load dav_svn.conf php5.conf setenvif.load auth_digest.load dav_svn.load php5.load ssl.conf authn_file.load deflate.conf proxy_balancer.conf ssl.load authz_default.load deflate.load proxy_balancer.load status.conf authz_groupfile.load dir.conf proxy.conf status.load authz_host.load dir.load proxy_connect.load suexec.load authz_user.load env.load proxy_http.load autoindex.conf fcgid.conf proxy.load autoindex.load fcgid.load reqtimeout.conf

So I assume its running. No ?