View previous topic :: View next topic |
Author |
Message |
gr0x0rd Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/14343107694740c0c8790c7.gif)
Joined: 12 Aug 2006 Posts: 311
|
Posted: Thu Jul 12, 2012 11:42 pm Post subject: apache vhosts + svn [solved] |
|
|
Hello all,
I've been struggling for some time to find a happy apache configuration with subversion using multiple subdomains. I've used apache for a lot of projects and implementations over the years, but I don't have a lot of experience with vhosts. Maybe this is where I'm stumped.
What I'd like is to have my root domain- say, www.mysite.com- go to the default apache page. "It works!" Simple enough. In continuation, I've created a vhost for a wiki at /var/www/wiki.mysite.com/htdocs/mediawiki/. Using the Gentoo documentation, this was a snap- I can point wiki.mysite.com to this resource without issue.
Svn is where it gets a bit tricky. I'd like to have svn.mysite.com bring up a prompt to access my repositories. Traditionally I have always added my config section to /etc/apache2/modules.d/47_mod_dav_svn.conf, as follows: Code: | <Location /svn/>
DAV svn
SVNParentPath /var/svn
SVNListParentPath on
SVNAutoVersioning On
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /var/svn/conf/svnusers
Require valid-user
# SSLRequireSSL
</Location> | With this method, I can access my repositories at http://www.mysite.com/svn/ without issue. But as soon as I implement a vhost for svn.mysite.com, I lose my DAV/svn functionality, and get a forbidden message.
I've tried a number of things...
Action: Move the <Location> section from the modules conf file to the vhosts conf file.
Result: Forbidden / No functionality
Action: Change the value in location tag from /svn/ to /
Result: SVN takes over all subdomains
Action: Set the DocumentRoot and Directory for the svn vhost to /var/svn/. Try the svn declarations there.
Result: Forbidden / No functionality
Action: Create a symlink to /var/svn within the htdocs folder for the vhost.
Result: Directory Listing / No functionality
Currently, the best I've been able to manage is have the vhost set up with an anchor to the /svn/ folder to get at the repository. But, this isn't ideal, as all of the projects previously used a dedicated svn server, and having the /svn/ in the path will mean having to update everything.
Surely there must be a better way to do this! Any suggestions? _________________ ~g
emerge -FML...
Last edited by gr0x0rd on Mon Jul 16, 2012 2:50 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
a3li Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 02 Sep 2008 Posts: 122 Location: 독일
|
Posted: Sun Jul 15, 2012 6:51 pm Post subject: Re: apache vhosts + svn |
|
|
gr0x0rd wrote: |
Action: Move the <Location> section from the modules conf file to the vhosts conf file.
Result: Forbidden / No functionality
|
What does the error log say why access is forbidden? _________________ I am Confuism. Do not bother me. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gr0x0rd Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/14343107694740c0c8790c7.gif)
Joined: 12 Aug 2006 Posts: 311
|
Posted: Mon Jul 16, 2012 2:50 am Post subject: |
|
|
This was a bit of a bonehead manouver... there wasn't much in the apache error_log, but I was missing a directivewhich brought me to the all familiar repository security prompt. Thanks! _________________ ~g
emerge -FML... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|