how to enable history?

25 views
Skip to first unread message

Reynevan

unread,
Nov 24, 2009, 3:57:34 AM11/24/09
to ReposStyle
I want to enable history of files.

When I change line as below in file repos-web/open/log/index.php
$repo = 'https://www.somedomain.com/svn';

I have error:

Repository history
svn: OPTIONS of 'https://www.somedomain.com/svn/ers': authorization
failed (https://www.somedomain.com)


part of my apache config:

<VirtualHost xxx.xxx.xxx.xxx:443>
ServerName www.somedomain.com

SSLEngine on
....

<Location /svn>
DAV svn
SVNPath /var/lib/svn/repos

order allow,deny
allow from all
AuthType Basic
AuthName "Subversion Repository"
Require valid-user
AuthUserFile /etc/apache2/dav_svn.passwd
AuthzSVNAccessFile /etc/apache2/svn_access_control
#style http://www.reposstyle.com/
SVNIndexXSLT "/repos-web/view/repos.xsl"
</Location>
...

Staffan

unread,
Nov 25, 2009, 6:41:24 AM11/25/09
to repos...@googlegroups.com
On Tue, Nov 24, 2009 at 9:57 AM, Reynevan <pawel...@gmail.com> wrote:
> I want to enable history of files.
>
> When I change line as below in file repos-web/open/log/index.php
> $repo = 'https://www.somedomain.com/svn';
>
> I have error:
>
> Repository history
> svn: OPTIONS of 'https://www.somedomain.com/svn/ers': authorization
> failed (https://www.somedomain.com)
>

You need to bypass authentication for the log viewer. The easiest way
is to use local access in the viewer.

$repo = 'file:///var/lib/svn/repos';

Note that this makes the log readable to all users, and publicly too
if you don't require authentication for /repos-web/open/. File
contents are never accessible through the log, only paths and log
messages.

/Staffan


>
> part of my apache config:
>
> <VirtualHost xxx.xxx.xxx.xxx:443>
>        ServerName www.somedomain.com
>
>        SSLEngine on
>        ....
>
>        <Location /svn>
>                DAV svn
>                SVNPath /var/lib/svn/repos
>
>                order allow,deny
>                allow from all
>                AuthType Basic
>                AuthName "Subversion Repository"
>                Require valid-user
>                AuthUserFile /etc/apache2/dav_svn.passwd
>                AuthzSVNAccessFile /etc/apache2/svn_access_control
>                #style http://www.reposstyle.com/
>                SVNIndexXSLT "/repos-web/view/repos.xsl"
>        </Location>
> ...
>
> --
>
> You received this message because you are subscribed to the Google Groups "ReposStyle" group.
> To post to this group, send email to repos...@googlegroups.com.
> To unsubscribe from this group, send email to reposstyle+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/reposstyle?hl=en.
>
>
>
Reply all
Reply to author
Forward
0 new messages