root/Apache-No404Proxy/trunk/README

Revision 213 (checked in by miyagawa, 18 years ago)

added README

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 NAME
2     Apache::No404Proxy - 404 Redirecting Proxy
3
4 SYNOPSIS
5       # in httpd.conf
6       PerlTransHandler Apache::No404Proxy
7
8 DESCRIPTION
9     Oops, 404 Not found. But wait..., there is a Google cache!
10
11     Apache::No404Proxy serves as a proxy server, which automaticaly detects
12     404 responses and redirects your browser to Google cache.
13
14 SUBCLASSING
15     Default cache archive is Google's one. Here is how you customize this.
16
17     *   Declare your URL translator class.
18
19     *   Inherit from Apache::No404Proxy.
20
21     *   Define "translate()" method.
22
23     That's all. Here is an example of implementation, extracted from
24     Apache::No404Proxy::Google.
25
26       package Apache::No404Proxy::Google;
27
28       use WWW::Cache::Google;
29       use base qw(Apache::No404Proxy);
30
31       sub translate {
32           my($class, $uri) = @_;
33           return WWW::Cache::Google->new($uri)->as_string;
34       }
35
36     Define "translate()" method as a class method. Argument $uri is a string
37     that represents URI.
38
39 AUTHOR
40     Tastuhiko Miyagawa <miyagawa@bulknews.net>
41
42     This library is free software; you can redistribute it and/or modify it
43     under the same terms as Perl itself.
44
45 SEE ALSO
46     the Apache::ProxyPassThru manpage, the LWP::UserAgent manpage, the
47     Apache::No404Proxy::Google manpage
48
Note: See TracBrowser for help on using the browser.