I have a fossil project and want to host it in a server of mine. I'm using lighttpd to serve the git interface for some other projects so using apache or nginx is out of the question.
I have followed the -rather simple- instructions and given read, write and execute permissions to www-data
in both the cgi-script and the repository.
The relevant part of my lighttpd.conf looks like this:
$HTTP["host"] =~ "^fossil-project.my-server.com$" {
server.groupname = "www-data"
server.username = "www-data"
cgi.assign = (
".cgi" => "/usr/bin/fossil"
)
alias.url += (
"/" => "/usr/lib/cgi-bin/fossilweb.cgi"
)
}
Going to my project in a web browser confirms that the cgi script works well, as it is redirecting from /
to /index
, the default landing page for the fossil web interface, but, instead of showing the project page (which also works, as confirmed by running fossil ui fossil-project.fossil
) it spits out a 404
!
I guess I'm missing something in the host configuration in the lighttpd.conf
that tells it
that all urls under /
in that subdomain should be handled by fossil
instead of by lighttpd, but I don't know how to do that
Any pointers?