Changes To Cookbook
Not logged in

Changes to "Cookbook" between 2009-11-06 04:13:02 and 2009-11-06 04:14:13

    80     80   <font color="#a52a2a">&nbsp;11 </font> <font color="#8B008B"><b>for</b></font> <font color="#000000">(</font><font color="#00688B">@files</font><font color="#000000">)</font> <font color="#000000">{</font>
    81     81   <font color="#a52a2a">&nbsp;12 </font>   <font color="#CD5555">s{.*/}{}</font><font color="#000000">;</font>
    82     82   <font color="#a52a2a">&nbsp;13 </font>   <font color="#8B008B"><b>next</b></font> <font color="#8B008B"><b>if</b></font> <font color="#CD5555">/~$/</font><font color="#000000">;</font>
    83     83   <font color="#a52a2a">&nbsp;14 </font>   <font color="#8B008B"><b>print</b></font> <font color="#CD5555">&quot;&lt;li&gt;&lt;a href=&#39;$_&#39;&gt;$_&lt;/a&gt;&lt;/li&gt;\n&quot;</font><font color="#000000">;</font>
    84     84   <font color="#a52a2a">&nbsp;15 </font> <font color="#000000">}</font>
    85     85   <font color="#a52a2a">&nbsp;16 </font> <font color="#8B008B"><b>print</b></font> <font color="#CD5555">&quot;&lt;/ul&gt;\n&quot;</font><font color="#000000">;</font>
    86     86   </pre>
    87         -
    88         -<pre>
    89         -#!/usr/bin/perl -w
    90         -my $CGI_BIN = '/Library/WebServer/CGI-Executables';
    91         -my @files = `grep -l repository:  $CGI_BIN/* `;
    92         -print &lt;&lt;EOM;
    93         -Content-Type: text/html
    94         -
    95         -Fossils for this server
    96         -&lt;ul>
    97         -EOM
    98         -
    99         -for (@files) {
   100         -  s{.*/}{};
   101         -  next if /~$/;
   102         -  print "&lt;li>&lt;a href='$_'>$_&lt;/a>&lt;/li>\n";
   103         -}
   104         -print "&lt;/ul>\n";</pre>
   105     87   </nowiki>
   106     88   
   107     89   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.
   108     90   
   109     91   <verbatim>
   110     92   NameVirtualHost *:80
   111     93   <VirtualHost *:80>