View Ticket
Not logged in
Ticket UUID: cdfef046616e1ab47953f78dc2a139eab551784d
Title: Specify file or directory options on "fossil cgi" command line
Status: Open Type: Feature_Request
Severity: Priority:
Subsystem: Resolution:
Last Modified: 2011-03-11 21:52:44
Version Found In:
Description & Comments:
I'm trying to use Fossil's CGI mode, but with /index.cgi and other such artifacts of the hosting configuration removed from the URL. I currently have rewrites working in the server, and a shell script that munges the environment variables, but I'm having trouble bridging to "fossil cgi".

In particular, because my shell script isn't the stock #!/usr/local/bin/fossil example, I can't pass the repository or directory options so it knows where to look for its data. An example in the cookbook writes a temporary compatible script containing the needed options and spawns an instance, but surely there has to be a better way.

Can "fossil cgi" accept -r or -d options that correspond to the "repository:" or "directory:" values from the shell script, or perhaps use a single switch and intelligently set the right value? For instance:

fossil cgi -r /home/fossil/myproject.fossil fossil cgi -d /home/fossil

Or maybe something like:

fossil -t /home/fossil/myproject.fossil fossil -t /home/fossil

where "-t" means "target" and sets the correct option based on whether the target is a file or directory.