aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Accessing Subversion over http Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Accessing Subversion over http" Watch "Accessing Subversion over http" New topic
Author

Accessing Subversion over http

Tim Francisco
Greenhorn

Joined: Apr 03, 2010
Posts: 12
Hello,
I have configured apache and subversion. I am able to access subversion over http as intended like this:


And this is the only way that I would like other users to access the repository. ie, I would like to limit user to access repository through http so that I can setup authentication for security.
But I am still able to access the repository with svn as follows:
and because of this my apache security is bypassed. How can I configure so that accessing with svn is prohibited?

Thank you.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

You haven't provided sufficient context. Using a "svn:" URL in my browser simply results in a message that the browser doesn't understand the "svn" protocol. If you mean using the "svn:" protocol on a command-line SVN request, just don't run the SVN server - which also means don't have SVN set up to come up in the superserver ([x]inetd) if you have one.

You don't need the SVN server when using WebDAV to access a subversion archive.


Customer surveys are for companies who didn't pay proper attention to begin with.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Sounds like you are still running the Subversion server - make sure it is not running.


JBoss In Action
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

Peter Johnson wrote:Sounds like you are still running the Subversion server - make sure it is not running.


concurrence. There's little need to run the Subversion server if you're using Apache to interface with svn.

Also, if you ever decide you need to run the subversion server, it has its own security system, as outlined in the subversion redbean book.
Tim Francisco
Greenhorn

Joined: Apr 03, 2010
Posts: 12
Tim Holloway wrote:
Peter Johnson wrote:Sounds like you are still running the Subversion server - make sure it is not running.


concurrence. There's little need to run the Subversion server if you're using Apache to interface with svn.

Also, if you ever decide you need to run the subversion server, it has its own security system, as outlined in the subversion redbean book.


That was it. Both of them were running!
Thank you Gentlemen!
Tim Francisco
Greenhorn

Joined: Apr 03, 2010
Posts: 12
Gentlemen,
While my subversion installation was working, I uninstalled subversion with apache embeded in it and reinstalled it clean. Everything works fine except accessing it over http which gives me the following error which left me without clue:


I have the followings turned on in httpd.conf:



Here is my Location in httpd.conf


I can access my repository over svn protocol without any problem as shown below:


Any idea as to what I am missing here as far as configuration is concerned or something else?

Thank you.
T
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

That looks pretty incomplete. And probably you need "C:\", not "C:/" in Apache.

Here's a setup I use. It's a bit extreme, since I use LDAP as my authenticator, but the same basic setup also works with things like .htaccess control:
Tim Francisco
Greenhorn

Joined: Apr 03, 2010
Posts: 12
Tim Holloway wrote:That looks pretty incomplete. And probably you need "C:\", not "C:/" in Apache.

Here's a setup I use. It's a bit extreme, since I use LDAP as my authenticator, but the same basic setup also works with things like .htaccess control:


Now I have this:


As expected, an authenication box pops up. Once I enter userid and password, I still get the same error:
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

What's the format of your svn-auth-file? It needs to have been created by the htpasswd utility - it's an Apache authorization file.

The svn docs go into a lot of detail on authorization, but that's for the standalone Subversion server and not Apache. Which can be confusing. Use Apache's security documentation, not Subversion's.
Tim Francisco
Greenhorn

Joined: Apr 03, 2010
Posts: 12
Tim Holloway wrote:What's the format of your svn-auth-file? It needs to have been created by the htpasswd utility - it's an Apache authorization file.

The svn docs go into a lot of detail on authorization, but that's for the standalone Subversion server and not Apache. Which can be confusing. Use Apache's security documentation, not Subversion's.


Here's how I created it:


Since its encrypted, it looks like trai:$apr1$quKOnClC$X.SuJqs7.mEyyXiHqQoBv.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing Subversion over http