Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running Ubuntu 10.4 with Apache2, SVN and SSL. Both HTTP and HTTPS are working correctly with my website. Although the SVN setup I have is not working.
This configuration gives me a 403 error.
Code:
<Location /svn>
DAV svn
SVNParentPath /srv/svn/repos
SVNListParentPath On
Order allow,deny
Allow from all
</Location>
This configuration prompts the login but it keep reprompting; not accepting my login.
Code:
<Location /svn>
DAV svn
SVNParentPath /srv/svn/repos
SVNListParentPath On
Order deny,allow
Deny from all
Satisfy any
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location>
I write out the dav_svn.passwd file using htpasswd.
This issue is driving me up the walls. If there is any additional information, I will be more than happy to provide it.
Thanks for the link. I paid particular attention to the subversion configuration for Apache2. When I get rid of the "Order deny,allow" and "Deny from all" it starts to work but unprotected. I noticed he uses htpasswd2 to create the password file. I couldn't find htpasswd2 on Ubuntu 10.4 but thought htpasswd was the command to use for Apache2. Is the problem that I am using htpasswd instead of htpasswd2? This would explain why the logins fail.
Thanks for the link. I paid particular attention to the subversion configuration for Apache2. When I get rid of the "Order deny,allow" and "Deny from all" it starts to work but unprotected. I noticed he uses htpasswd2 to create the password file. I couldn't find htpasswd2 on Ubuntu 10.4 but thought htpasswd was the command to use for Apache2. Is the problem that I am using htpasswd instead of htpasswd2? This would explain why the logins fail.
htpasswd2 is used on SLES there but in ubuntu its htpasswd .
In SLES the version comes after the command, like apache2,htpasswd2 etc..
That makes sense, thanks for explaining this. Do you know why the login is not being accepted? Even with HTTP+SVN I can't get it working. I reinstalled Ubuntu 10.04 from scratch without SSL this time and only followed this tutorial in order to setup WebDAV. Please help me, I am so frustrated that it keeps requesting the login.
Code:
<Location /svn>
DAV svn
SVNParentPath /srv/svn/repos
SVNListParentPath On
Order deny,allow
Deny from all
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location>
I was able to resolve the problem by putting the Limit directive around the Require valid-user directive.
Code:
<Limit GET POST PUT DELETE CONNECT OPTIONS PATCH PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require valid-user
</Limit>
Don't ask me why, it just works now. I used LimitExcept but I wanted to bar everything so I used Limit instead. You could probably use LimitExcept OPTIONS too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.