52 52 <font color="#a52a2a">15 </font> chown root:root <font color="#a020f0">$DESTINATION</font><br>
53 53 <font color="#a52a2a">16 </font> <font color="#a52a2a"><b>chmod</b></font> <font color="#ff00ff">755</font> <font color="#a020f0">$DESTINATION</font><br>
54 54 <font color="#a52a2a">17 </font> <font color="#a52a2a"><b>done</b></font><br>
55 55 <font color="#a52a2a">18 </font><font color="#a52a2a"><b>else</b></font><br>
56 56 <font color="#a52a2a">19 </font> sudo <font color="#a020f0">$0</font> <font color="#a020f0">$*</font><br>
57 57 <font color="#a52a2a">20 </font><font color="#a52a2a"><b>fi</b></font><br>
58 58 </font></nowiki>
59 +
60 +Here is a little perl script to put in your cgi-bin to list all the fossils you are publishing:
61 +
62 +<nowiki><pre>
63 +#!/usr/bin/perl -w
64 +my $CGI_BIN = '/Library/WebServer/CGI-Executables';
65 +my @files = `grep -l repository: $CGI_BIN/* `;
66 +print <<EOM;
67 +Content-Type: text/html
68 +
69 +Fossils for this server
70 +<ul>
71 +EOM
72 +
73 +for (@files) {
74 + s{.*/}{};
75 + next if /~$/;
76 + print "<li><a href='$_'>$_</a></li>\n";
77 +}
78 +print "</ul>\n";</pre>
79 +</nowiki>
59 80
60 81 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.
61 82
62 83 <verbatim>
63 84 NameVirtualHost *:80
64 85 <VirtualHost *:80>
65 86 ServerName code.autonomo.us