Ticket Change Details
Not logged in
Overview

Artifact ID: 75ce145719ce961890cb23b2d9fe81a2bec8df39
Ticket: cdfef046616e1ab47953f78dc2a139eab551784d
Specify file or directory options on "fossil cgi" command line
User & Date: anonymous 2011-03-11 21:52:44
Changes

  1. comment changed to:
    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.
    
  2. private_contact changed to: "e7d733707d8c126de4f080f5f958e762bfaa8983"
  3. status changed to: "Open"
  4. title changed to:
    Specify file or directory options on "fossil cgi" command line
    
  5. type changed to: "Feature_Request"