perl-docs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Per Einar Ellefsen <per.ei...@skynet.be>
Subject [PATCH] tips/
Date Fri, 26 Apr 2002 20:27:15 GMT

Hello,

I changed some things in Bill's (otherwise excellent) tips section. The 
main point was to change the configuration style to the one most widely 
used in Apache/mod_perl docs, and to fix broken links.

I also noticed that many files need to be removed from the repository (in 
src/):
- stories/.cvsignore
- the support/ dir
- start/about.html
- start/tips/*.html
- start/tips/logging.pod, if it's not going to be used (although it is 
pretty cool).
- about/ and about/tips directories
- download/distributions.html

That's all I could find for now.

Index: src/start/tips/registry.pod
===================================================================
RCS file: /home/cvspublic/modperl-docs/src/start/tips/registry.pod,v
retrieving revision 1.2
diff -u -u -r1.2 registry.pod
--- src/start/tips/registry.pod 26 Apr 2002 01:43:11 -0000      1.2
+++ src/start/tips/registry.pod 26 Apr 2002 20:24:41 -0000
@@ -24,11 +24,11 @@
  This script can now be run as-is under C<Apache::Registry> by using the
  following configuration in I<httpd.conf>:

-  <files hello.cgi>
+  <Files hello.cgi>
        SetHandler perl-script
        PerlHandler Apache::Registry
        Options ExecCGI
-  </files>
+  </Files>

  That's basically it.  Your scripts do need to be well coded, but
  there's even the C<Apache::PerlRun> module to help with those "less
@@ -44,7 +44,7 @@
  Apache version 1.3.20</small>

  For more information on running CGI scripts under mod_perl please see
-L<mod_perl FAQs|"../../docs/1.0/faqs/index.html">.
+L<mod_perl FAQs|docs::1.0::faqs::index>.

  =for html
  <a class="more" href="../index.html#registry">&#171&nbsp;back</a>
Index: src/start/tips/handler.pod
===================================================================
RCS file: /home/cvspublic/modperl-docs/src/start/tips/handler.pod,v
retrieving revision 1.6
diff -u -u -r1.6 handler.pod
--- src/start/tips/handler.pod  26 Apr 2002 05:43:59 -0000      1.6
+++ src/start/tips/handler.pod  26 Apr 2002 20:24:41 -0000
@@ -38,17 +38,17 @@


  Save the above as a file file in your perl library
-(e.g. I<My/Greeting.pm>a).  Now, to return the above greeting when the
+(e.g. I<My/Greeting.pm>).  Now, to return the above greeting when the
  URL I</hello> is visited on your server:

-  <location /hello>
+  <Location /hello>
        SetHandler perl-script
        PerlHandler My::Greeting
-  </location>
+  </Location>

  For a more in-depth explanation of creating mod_perl handlers see
-L<Documentation|"../../docs/index.html">.  The L<mod_perl
-Guide|"../../docs/1.0/guide/index.html"> is also recommended reading.
+L<Documentation|docs::index>.  The L<mod_perl Guide|guide::index> is
+also recommended reading.

  =for html
  <a class="more" href="../index.html#handler">&#171&nbsp;back</a>
Index: src/start/tips/logging.pod
===================================================================
RCS file: /home/cvspublic/modperl-docs/src/start/tips/logging.pod,v
retrieving revision 1.3
diff -u -u -r1.3 logging.pod
--- src/start/tips/logging.pod  26 Apr 2002 01:49:53 -0000      1.3
+++ src/start/tips/logging.pod  26 Apr 2002 20:24:41 -0000
@@ -8,10 +8,10 @@
  example of a C<PerlLogHandler>.  The C<PerlLogHandler> is one of the
  last phases of the request cycle.

-This example sends mail when a request is made to the /private section
-of your web space.  A more common use of a C<PerlLogHandler> might be
-to track hits on a specific set of URLs, or to write logging data to a
-relational database.
+This example sends mail when a request is made to the I</private>
+section of your web space.  A more common use of a C<PerlLogHandler>
+might be to track hits on a specific set of URLs, or to write logging
+data to a relational database.

    file:My/Notify.pm
    ------------------------
@@ -41,10 +41,10 @@

  The I<httpd.conf> setup:

-  <location /private>
+  <Location /private>
        SetHandler perl-script
        PerlLogHandler My::Notify
-  </location>
+  </Location>

  =for html
  <a class="more" href="../index.html#logging">&#171&nbsp;back</a>
Index: src/start/tips/favicon.pod
===================================================================
RCS file: /home/cvspublic/modperl-docs/src/start/tips/favicon.pod,v
retrieving revision 1.2
diff -u -u -r1.2 favicon.pod
--- src/start/tips/favicon.pod  26 Apr 2002 01:43:11 -0000      1.2
+++ src/start/tips/favicon.pod  26 Apr 2002 20:24:41 -0000
@@ -9,8 +9,8 @@
  I<favicon.ico> and rewrites the request to point to a vaild location.
  No more logs full of 404 errors.

-This example is adapted from the L<mod_perl Devekioer's
-Cookbook|http://modperlcookbook.com>, chapter 12.
+This example is adapted from the mod_perl Developer's Cookbook
+(http://modperlcookbook.com), chapter 12.

    file:Cookbook/Favicon.pm
    ------------------------
@@ -35,7 +35,7 @@
      PerlTransHandler Cookbook::Favicon

  Although this example could easily be accomplished with Apache's
-mod_rewrite module, this example demonstrates how easy it is to
+C<mod_rewrite> module, this example demonstrates how easy it is to
  rewrite URLs programatically, using the power of Perl.

  =for html


-- 
Per Einar Ellefsen
per.einar@skynet.be



---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-dev-help@perl.apache.org


Mime
View raw message