PDA

View Full Version : [ADVANCED] - Browsing the SVN Server files using ISPConfig


vaio1
29th June 2008, 11:31
Hi All,

I have followed the SVN manual for installing the SVN Server and I have successful installed the svn server. Now when I have to enable the browsing of the files, I have to write these lines of code in the httpd.conf file:

<VirtualHost 000.000.000.000:80>
ServerName svn.mydomain.com
<Location />
DAV svn
SVNPath /home/svn_repositories/myrepos

# our access control policy
AuthzSVNAccessFile /etc/subversion/my_policy

Require valid-user

AuthType Basic
AuthName "My Projects"
AuthUserFile /etc/subversion/passwd

</Location>
</VirtualHost>

If I write the above mentioned rows the sharedip page is not executed.

How can I write that commands and settings in the /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf ?

Do I have to create first of all the co-domain? and then?

thanks

till
30th June 2008, 13:06
Try to add the following part in the apache directives field of a website:

<Location />
DAV svn
SVNPath /home/svn_repositories/myrepos

# our access control policy
AuthzSVNAccessFile /etc/subversion/my_policy

Require valid-user

AuthType Basic
AuthName "My Projects"
AuthUserFile /etc/subversion/passwd

</Location>

vaio1
30th June 2008, 13:16
Hi Till,

the directive : ServerName svn.mydomain.com is not mandatory?

Have I create a co-domain for it?

thanks

till
30th June 2008, 13:22
This directive is set by ISPConfig.

Create a new website with:

host: svn
domain: mydomain.com

vaio1
30th June 2008, 13:31
Hi again,

can be a subdomain of a main site?

thanks

falko
1st July 2008, 21:57
No, it must be a web site of its own.