52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
<font color="#a52a2a">15 </font> chown root:root <font color="#a020f0">$DESTINATION</font><br>
<font color="#a52a2a">16 </font> <font color="#a52a2a"><b>chmod</b></font> <font color="#ff00ff">755</font> <font color="#a020f0">$DESTINATION</font><br>
<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
<VirtualHost *:80>
ServerName code.autonomo.us
|