Re: [fossil-users] How to set up a server under nginx ?
OK. Well, the other thing you can do is lobby the nginx people to start supporting CGI. :-) I'm not a nginx user, and such would not work if the front web server and the fossil server are on different machines, as they are in my case. With the current fossil code base my workaround is to run a tiny webserver on the fossil machine that calls fossil in CGI mode and sets the SCRIPT_NAME environment variable appropriately based on the forwarded http header info. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[fossil-users] How to set up a server under nginx ?
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.___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to set up a server under nginx ?
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. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to set up a server under nginx ?
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
Re: [fossil-users] How to set up a server under nginx ?
in fact , I want to make several repositories use one port, and under nginx. or with CGI anyway..___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to set up a server under nginx ?
On Sun, Sep 25, 2011 at 12:25 PM, i i...@ijser.cn wrote: in fact , I want to make several repositories use one port, and under nginx. or with CGI anyway.. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users (1) Put all of your Fossil repositories in the same directory. For example /home/www/repos. Name each with the .fossil suffix. So, for example, you might have /home/www/repos/aaa.fossil, /home/www/repos/bbb.fossil, /home/www/repos/ccc.fossil, and so forth. (2) Run fossil server /home/www/repos. By giving it a directory as an argument, it will serve any fossil repository under that directory, using the base name of the repository as the prefix on the URL. Example: http://localhost:8080/aaa/timeline, http://localhost:8080/bbb/timeline, etc. (3) Configure nginx to relay requests to the fossil server instance. -- D. Richard Hipp d...@sqlite.org ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to set up a server under nginx ?
2011/9/25 Richard Hipp d...@sqlite.org: On Sun, Sep 25, 2011 at 12:25 PM, i i...@ijser.cn wrote: in fact , I want to make several repositories use one port, and under nginx. or with CGI anyway.. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users (1) Put all of your Fossil repositories in the same directory. For example /home/www/repos. Name each with the .fossil suffix. So, for example, you might have /home/www/repos/aaa.fossil, /home/www/repos/bbb.fossil, /home/www/repos/ccc.fossil, and so forth. (2) Run fossil server /home/www/repos. By giving it a directory as an argument, it will serve any fossil repository under that directory, using the base name of the repository as the prefix on the URL. Example: http://localhost:8080/aaa/timeline, http://localhost:8080/bbb/timeline, etc. I know this is not the place for feature request :), but it will be great if there could be an index of repositories when going to http://localhost:8080/ (ala cgit) regards, Bapt ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] How to set up a server under nginx ?
On Sun, Sep 25, 2011 at 2:45 PM, Paul Ruizendaal p...@planet.nl wrote: (3) Configure nginx to relay requests to the fossil server instance. Afaik, this only works if the root is relayed, not if the fossil server instance is rooted at a base path. For example, forwarding http://www.domain.com/ to a fossil server would work, but forwarding http://www.domain.com/path/to/ would not work, because the generated html would not have correct href's (it would not have the '/path/to' bit). I've posted a patch to make this work july 11th, 2010, but I don't think it was accepted into the main code. OK. Well, the other thing you can do is lobby the nginx people to start supporting CGI. :-) Paul On 25 Sep 2011, at 18:53 , Richard Hipp wrote: On Sun, Sep 25, 2011 at 12:25 PM, i i...@ijser.cn wrote: in fact , I want to make several repositories use one port, and under nginx. or with CGI anyway.. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users (1) Put all of your Fossil repositories in the same directory. For example /home/www/repos. Name each with the .fossil suffix. So, for example, you might have /home/www/repos/aaa.fossil, /home/www/repos/bbb.fossil, /home/www/repos/ccc.fossil, and so forth. (2) Run fossil server /home/www/repos. By giving it a directory as an argument, it will serve any fossil repository under that directory, using the base name of the repository as the prefix on the URL. Example: http://localhost:8080/aaa/timeline, http://localhost:8080/bbb/timeline, etc. (3) Configure nginx to relay requests to the fossil server instance. -- D. Richard Hipp d...@sqlite.org ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users -- D. Richard Hipp d...@sqlite.org ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users