D 2011-03-11T21:52:44.454 J comment I'm\strying\sto\suse\sFossil's\sCGI\smode,\sbut\swith\s/index.cgi\sand\sother\ssuch\sartifacts\sof\sthe\shosting\sconfiguration\sremoved\sfrom\sthe\sURL.\sI\scurrently\shave\srewrites\sworking\sin\sthe\sserver,\sand\sa\sshell\sscript\sthat\smunges\sthe\senvironment\svariables,\sbut\sI'm\shaving\strouble\sbridging\sto\s"fossil\scgi".\r\n\r\nIn\sparticular,\sbecause\smy\sshell\sscript\sisn't\sthe\sstock\s#!/usr/local/bin/fossil\sexample,\sI\scan't\spass\sthe\srepository\sor\sdirectory\soptions\sso\sit\sknows\swhere\sto\slook\sfor\sits\sdata.\sAn\sexample\sin\sthe\scookbook\swrites\sa\stemporary\scompatible\sscript\scontaining\sthe\sneeded\soptions\sand\sspawns\san\sinstance,\sbut\ssurely\sthere\shas\sto\sbe\sa\sbetter\sway.\r\n\r\nCan\s"fossil\scgi"\saccept\s-r\sor\s-d\soptions\sthat\scorrespond\sto\sthe\s"repository:"\sor\s"directory:"\svalues\sfrom\sthe\sshell\sscript,\sor\sperhaps\suse\sa\ssingle\sswitch\sand\sintelligently\sset\sthe\sright\svalue?\sFor\sinstance:\r\n\r\nfossil\scgi\s-r\s/home/fossil/myproject.fossil\r\nfossil\scgi\s-d\s/home/fossil\r\n\r\nOr\smaybe\ssomething\slike:\r\n\r\nfossil\s-t\s/home/fossil/myproject.fossil\r\nfossil\s-t\s/home/fossil\r\n\r\nwhere\s"-t"\smeans\s"target"\sand\ssets\sthe\scorrect\soption\sbased\son\swhether\sthe\starget\sis\sa\sfile\sor\sdirectory. J private_contact e7d733707d8c126de4f080f5f958e762bfaa8983 J status Open J title Specify\sfile\sor\sdirectory\soptions\son\s"fossil\scgi"\scommand\sline J type Feature_Request K cdfef046616e1ab47953f78dc2a139eab551784d U anonymous Z f5637dadead7203d16d5ad79e475ed13