On Sep 25, 2011, at 10:38 AM, Lluís Batlle i Rossell wrote: > On Sun, Sep 25, 2011 at 04:33:44PM +0800, i wrote: >> I don't want to use CGI, as it's already nginx running . so now I want to >> use nginx to set up the server for fossil and I don't know what to do. >> Thanks. > > What makes you think, that you don't want CGI? I'd say you want CGI, as long > as > nginx is a web server.
Well, CGI in httpd/inetd is going to run Fossil for every request. In the meantime, Fossil in server mode does a fork for every request too, but it *does not do exec*. So it can be more performant to just proxy to a `fl server` instance. Plus, this way you don't have to make your repositories readable by httpd process. To answer the original question: You start your fossil server on a given port, preferably by means of cron. Then, in your vhost configuration you just put: location @fossil { proxy_pass http://localhost:MY_CHOSEN_PORT; } And anchor it appropriately. That simple. Kind regards, Remigiusz Modrzejewski _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users