Linux - Server This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-07-2011, 10:19 PM
|
#1
|
Member
Registered: Jun 2003
Distribution: SuSE, Slackware, Gentoo
Posts: 207
Rep:
|
Unable to access repo with SVN+HTTPS.
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.
|
|
|
07-08-2011, 03:51 AM
|
#2
|
Senior Member
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386
Rep: 
|
|
|
1 members found this post helpful.
|
07-08-2011, 10:56 AM
|
#3
|
Member
Registered: Jun 2003
Distribution: SuSE, Slackware, Gentoo
Posts: 207
Original Poster
Rep:
|
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.
|
|
|
07-08-2011, 10:17 PM
|
#4
|
Senior Member
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386
Rep: 
|
Quote:
Originally Posted by unreal128
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..
|
|
1 members found this post helpful.
|
07-11-2011, 11:29 AM
|
#5
|
Member
Registered: Jun 2003
Distribution: SuSE, Slackware, Gentoo
Posts: 207
Original Poster
Rep:
|
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>
Last edited by unreal128; 07-12-2011 at 12:17 AM.
|
|
|
07-13-2011, 11:33 AM
|
#6
|
Member
Registered: Jun 2003
Distribution: SuSE, Slackware, Gentoo
Posts: 207
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|