sutch has asked for the wisdom of the Perl Monks concerning the following question:
I'm looking for options in capturing all HTTP requests to a host (or a specific directory of a host) by one script. The environment that I'm working in is Apache HTTP (version 1.3). Sometimes I'm able to use mod_perl, but for the most part I'm required to use CGI.
So far I've been able to make use of
ErrorDocument 404 /myapp/index.cgi
This works well, providing /myapp/index.cgi with all requests made to any path within the /myapp directory (such as /myapp/foo/bar).
The problem with this is that it fills up Apache's error log.
Are there other methods? If so, how does Perl get at the requested path (I've had problems with this when attempting to use mod_rewrite)?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Ways for capturing all requests under Apache
by BUU (Prior) on Aug 06, 2004 at 22:16 UTC | |
by sutch (Curate) on Aug 07, 2004 at 03:46 UTC | |
Re: Ways for capturing all requests under Apache
by Zaxo (Archbishop) on Aug 06, 2004 at 22:08 UTC | |
by sutch (Curate) on Aug 07, 2004 at 03:39 UTC |
Back to
Seekers of Perl Wisdom