@@ -54,10 +54,31 @@ <font color="#a52a2a">17 </font> <font color="#a52a2a"><b>done</b></font><br> <font color="#a52a2a">18 </font><font color="#a52a2a"><b>else</b></font><br> <font color="#a52a2a">19 </font> sudo <font color="#a020f0">$0</font> <font color="#a020f0">$*</font><br> <font color="#a52a2a">20 </font><font color="#a52a2a"><b>fi</b></font><br> </font></nowiki> + +Here is a little perl script to put in your cgi-bin to list all the fossils you are publishing: + +<nowiki><pre> +#!/usr/bin/perl -w +my $CGI_BIN = '/Library/WebServer/CGI-Executables'; +my @files = `grep -l repository: $CGI_BIN/* `; +print <<EOM; +Content-Type: text/html + +Fossils for this server +<ul> +EOM + +for (@files) { + s{.*/}{}; + next if /~$/; + print "<li><a href='$_'>$_</a></li>\n"; +} +print "</ul>\n";</pre> +</nowiki> The following <cite>apache2</cite> configuration can be used to run the root of a web site with fossil, but still allow other services / documents to be reached via specific URLs. Replace "code.autonomo.us" with your site's name and "dclark@pobox.com" with your email. <verbatim> NameVirtualHost *:80