Hello.
I'm trying to make svn working in subdomain. I'm using DirectAdmin/Ubuntu
I've made it as it was described by user tillo
... with some changes in httpd-svn.conf
My server domain is serverdomain.com, but for svn I want to use subdomain for mydomain.com, which is already using by directadmin (I mean that I've already added mydomain.com via DireactAdmin panel and also there is some subdomains for it).
I did not added subdomain "svn.mydomain.com" via DirectAdmin hosting panel.
I've created viasvnmanager web script a "test" repository. In the htpasswd and accessfile - there are user and repository data. Also "/home/user2/svn/repos/test" was created.
When I'm trying to open svn.mydomain.com, then it's open the page with:
Apache is functioning normally
But when I'm trying to open svn.mydomain.com/test, then it throws me "Not Found".
Please help.
I'm trying to make svn working in subdomain. I'm using DirectAdmin/Ubuntu
I've made it as it was described by user tillo
You got it wrong: subversion must be compiled against the Apache headers to create the mod_dav_svn module; Apache doesn't have a mod_dav_svn module itself, and you can't install subversion with yum.
Add this to /etc/httpd/conf/extra/httpd-includes.conf:
- deinstall subversion
- set clean=no in CustomBuild's options.conf
- recompile apache with the original configure script (delete yours), all required modules are already activated
- download and extract the subversion source tarball
- run "./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-config", "make" and "make install" in it
- there should be a file named mod_dav_svn.so in /usr/lib/apache, and you should be able to run "svn help"
- I use this config:
Create /etc/httpd/conf/extra/httpd-svn.conf:Code:# All SVN directives Include conf/extra/httpd-svn.conf
Code:LoadModule dav_svn_module /usr/lib/apache/mod_dav_svn.so LoadModule authz_svn_module /usr/lib/apache/mod_authz_svn.so <IfModule dav_svn_module> <IfModule authz_svn_module> <Location /svn> DAV svn SVNParentPath /svn AuthzSVNAccessFile /svn/authz Satisfy Any Require valid-user AuthType Basic AuthName "Subversion repository" AuthUserFile /svn/passwd </Location> </IfModule> </IfModule>
... with some changes in httpd-svn.conf
Code:
<IfModule dav_svn_module>
<IfModule authz_svn_module>
<Location svn.mydomain.com>
DAV svn
SVNParentPath /home/user2/svn/repos
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /home/user2/svn/repos/htpasswd
AuthzSVNAccessFile /home/user2/svn/repos/accessfile
</Location>
</IfModule>
</IfModule>
My server domain is serverdomain.com, but for svn I want to use subdomain for mydomain.com, which is already using by directadmin (I mean that I've already added mydomain.com via DireactAdmin panel and also there is some subdomains for it).
I did not added subdomain "svn.mydomain.com" via DirectAdmin hosting panel.
I've created viasvnmanager web script a "test" repository. In the htpasswd and accessfile - there are user and repository data. Also "/home/user2/svn/repos/test" was created.
When I'm trying to open svn.mydomain.com, then it's open the page with:
Apache is functioning normally
But when I'm trying to open svn.mydomain.com/test, then it throws me "Not Found".
Please help.