Changes To Cookbook
Not logged in

Changes to "Cookbook" between 2009-04-20 14:07:46 and 2009-04-22 14:53:44

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>&nbsp;&nbsp;&nbsp;&nbsp;chown root:root <font color="#a020f0">$DESTINATION</font><br>
<font color="#a52a2a">16 </font>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#a52a2a"><b>chmod</b></font>&nbsp;<font color="#ff00ff">755</font>&nbsp;<font color="#a020f0">$DESTINATION</font><br>
<font color="#a52a2a">17 </font>&nbsp;&nbsp;<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>&nbsp;&nbsp;sudo <font color="#a020f0">$0</font>&nbsp;<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 &lt;&lt;EOM;
Content-Type: text/html

Fossils for this server
&lt;ul>
EOM

for (@files) {
  s{.*/}{};
  next if /~$/;
  print "&lt;li>&lt;a href='$_'>$_&lt;/a>&lt;/li>\n";
}
print "&lt;/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