|Problems? Is your data what you think it is?|
Ways for capturing all requests under Apacheby sutch (Curate)
|on Aug 06, 2004 at 21:54 UTC||Need Help??|
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)?