lighttpd 1.5 and hgwebdir.fcgi
Tane Piper
digitalspaghetti at googlemail.com
Thu Apr 10 04:12:16 CDT 2008
Hi james,
I had the exact same issue. You need to add the base parameter to
your config file's web section with no value, like this:
[web]
base =
Hope that works for you
On Thu, Apr 10, 2008 at 5:59 AM, James Hunsaker IV
<hunsaker at spacetime.org> wrote:
> I have been attempting to get the hgwebdir.fcgi script posted in a
> number of places working with lighttpd 1.5.
>
> The script I am using is:
>
> ==== hgwebdir.fcgi =============
> #!/usr/bin/env python
>
> import cgitb
> from mercurial.hgweb.hgwebdir_mod import hgwebdir
> from mercurial.hgweb.request import wsgiapplication
> from flup.server.fcgi import WSGIServer
>
> cgitb.enable()
>
> def make_web_app():
> return hgwebdir("hgweb.config")
>
> WSGIServer(wsgiapplication(make_web_app)).run()
> ================================
>
> My config file is:
>
> ==== hgweb.config ==============
> [paths]
> Project = /home/repos/Project
>
> [web]
> style = gitweb
> ================================
>
> My lighttpd config is:
>
> ================================
> $HTTP["url"] =~ "^/repos(/|$)" {
> proxy-core.protocol = "fastcgi"
> proxy-core.backends = ( "unix:/tmp/hg-fastcgi.sock" )
> proxy-core.rewrite-request = (
> "_pathinfo" => ( "^/repos(/.*)" => "$1" )
> )
> }
> ================================
>
> I am running spawn-cgi using:
>
> spawn-fcgi -f ./hgwebdir.fcgi -s /tmp/hg-fastcgi.sock
>
> When I load http://hostname/repos/ I get a list of the repositories but
> with no static file (no stylesheet, etc) and
>
> connections.c.594: (error) ++ oops, something went wrong while reading
> connections.c.1022: (trace) (error)
>
> in the error.log.
>
> When I load http://hostname/repos/Project/ I still get a list of the
> repositories and again with same errors.
>
> Any suggestions?
>
> Thanks!
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
--
Tane Piper
Blog - http://digitalspaghetti.me.uk
Skype: digitalspaghetti
This email is: [ ] blogable [ x ] ask first [ ] private
More information about the Mercurial
mailing list