Changes To Cookbook
Not logged in

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

    52     52   <font color="#a52a2a">15 </font>&nbsp;&nbsp;&nbsp;&nbsp;chown root:root <font color="#a020f0">$DESTINATION</font><br>
    53     53   <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>
    54     54   <font color="#a52a2a">17 </font>&nbsp;&nbsp;<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>&nbsp;&nbsp;sudo <font color="#a020f0">$0</font>&nbsp;<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 &lt;&lt;EOM;
           67  +Content-Type: text/html
           68  +
           69  +Fossils for this server
           70  +&lt;ul>
           71  +EOM
           72  +
           73  +for (@files) {
           74  +  s{.*/}{};
           75  +  next if /~$/;
           76  +  print "&lt;li>&lt;a href='$_'>$_&lt;/a>&lt;/li>\n";
           77  +}
           78  +print "&lt;/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