@@ -82,28 +82,10 @@ <font color="#a52a2a"> 13 </font> <font color="#8B008B"><b>next</b></font> <font color="#8B008B"><b>if</b></font> <font color="#CD5555">/~$/</font><font color="#000000">;</font> <font color="#a52a2a"> 14 </font> <font color="#8B008B"><b>print</b></font> <font color="#CD5555">"<li><a href='$_'>$_</a></li>\n"</font><font color="#000000">;</font> <font color="#a52a2a"> 15 </font> <font color="#000000">}</font> <font color="#a52a2a"> 16 </font> <font color="#8B008B"><b>print</b></font> <font color="#CD5555">"</ul>\n"</font><font color="#000000">;</font> </pre> - -<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>