Dmitry Chestnykh wrote: >> I wrote down what I did in my blog, in case anyone is interested in >> reading the experiences of another newbie: >> >> http://bkhome.org/blog/?viewDetailed=01200 >> http://bkhome.org/blog/?viewDetailed=01201 > > Regarding hiding whatever.cgi, here's how I do it. I keep CGI script (for > multiple > repositories, from http://www.fossil-scm.org/index.html/wiki?name=Cookbook) > in /cgi-bin/public.cgi on my server. In the Apache config for my virtual host > I have: > > <VirtualHost *:80> > ... > ScriptAlias /p /home/path-to-website/cgi-bin/public.cgi > ... > > (I don't think that ScriptAlias works from .htaccess, though). > > This way http://codingrobots.org/p maps to public.cgi, which serves > repositories, and I have nice URLs like http://codingrobots.org/p/qlfossil
If you want even prettier URLs at the expense of ugly apache configuration, you can do something like this (improvements welcome - note backslashes aren't in original and are just her for formatting; I don't know if they are valid apache line continuation syntax): # Fossil SCM at root of web site (http://example.com) configuration... RewriteEngine On # RewriteCond - # One for every URL we don't want root Fossil SCM to serve. For # example, requests that go to the /var/www/tmp directory are # ignored by Fossil SCM. RewriteCond %{REQUEST_URI} !^/notrootfossil1.*$ RewriteCond %{REQUEST_URI} !^/notrootfossil2.*$ RewriteCond %{REQUEST_URI} !^/images.*$ RewriteCond %{REQUEST_URI} !^/tmp.*$ RewriteRule ^(.*)$ /usr/lib/cgi-bin/example.com/$1 \ [T=application/x-httpd-cgi] # Now seprate fossil-scm databases we want to serve under root... RewriteRule ^/notrootfossil1(.*)$ /usr/lib/cgi-bin/notrootfossil1/$1 \ [T=application/x-httpd-cgi] RewriteRule ^/notrootfossil2(.*)$ /usr/lib/cgi-bin/notrootfossil2/$1 \ [T=application/x-httpd-cgi] This will let you have http://example.com, http://example.com/notrootfossil1, and http://example.com/notrootfossil2 be seperate fossil scm instances, while allowing other URLs like http://example.com/images and http://example.com/tmp to be served by apache (or other cgis etc). -- Daniel JB Clark | Sys Admin, Free Software Foundation pobox.com/~dclark | http://www.fsf.org/about/staff#danny _______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

