lighttpd + mod_proxy + apache2 + mod_dav_svn
My aim is using svn on my project with trac support. We have established trac via lighttpd several weeks ago. However we can not directly access svn via HTTP protocol.
At first, we try to map /repos to svnn’s directory by mod_alias:
“/repos/” => “/var/svn”
)
It works (I mean alias part) and fails (svn do not recognize that).
So let’s search, there is an article on lighttpd official site describing how to use lighttpd with subversion. It seems like the only choice we have. But I don’t like to make another authentication for apache. So I’ve come up with a solution. Here is the final solution:
in lighttpd.conf:
$HTTP["url"] =~ “^/repos/” {
auth.require = ( “/repos” =>
(
“method” => “basic”,
“realm” => “subversion repository”,
“require” => “valid-user”
)
)
proxy.server = (
“/repos” => ( ( “host” => “127.0.0.1″, “port” => 8080 ) )
)
}
}
in apache2’s httpd.conf:
ServerName MYHOSTNAME
DocumentRoot /usr/local/www/data
DAV svn
SVNParentPath /var/svn
SVNAutoversioning on
Order allow,deny
Allow from all
lighttpd subversion, lighttpd, subversion, trac
Technorati Tags: lighttpd subversion, lighttpd, subversion, trac


















十一月 3rd, 2006 at 8:22 am
[...] Hi! I’m clsung » Blog Archive » lighttpd + mod_proxy + apache2 + mod_dav_svn (tags: Tech Apache lighttpd Guide SVN) [...]
六月 28th, 2007 at 11:29 pm
hi, 我用 trac apache svn,
請教為何用 lighttpd svn apache trac 呢?
這樣不是多裝一套 lighttpd 嗎? 還是效能高很多呢?
六月 29th, 2007 at 11:10 pm
lighttpd 的介紹很多人都有, 所以就不介紹啦, 不過我個人是覺得比 apache2 在執行我所需要的程式上面速度快啦
啊因為 lighttpd 目前對 DAV 的支援就….所以還會用 apache2 來專門做這個…