Artifact 23fd916be2143ac1026fcbea2fbea1373bf68876:
- File www/scgi.wiki — part of check-in [a2e7472d] at 2013-08-13 18:15:36 on branch trunk — Add support for SCGI via the --scgi command-line option to the "server" and "ui" and "http" commands. (user: drh size: 885) [more...]
Fossil SCGI
To run Fossil using SCGI, start the fossil server command with the --scgi command-line option. You will probably also want to specific an alternative TCP/IP port using --port. For example:
fossil server $REPOSITORY --port 9000 --scgi
Then configure your SCGI-aware web-server to send SCGI requests to port 9000 on the machine where Fossil is running. A typical configuration for this in Nginx is:
location ~ ^/demo_project/ { include scgi_params; scgi_pass localhost:9000; scgi_param SCRIPT_NAME "/demo_project"; }
Note that Nginx does not normally send either the PATH_INFO or SCRIPT_NAME variables via SCGI, but Fossil needs one or the other. So the configuration above needs to add SCRIPT_NAME. If you do not do this, Fossil return an error.