Your best approach would be to use aliases. Depending on the complexity, you may or may not need regular expressions.

I would suggest a FILEALIAS to convert to a "file type:"

   FILEALIAS /scripts/getdoc?*;o=H /scripts/getdoc/$1.html

And then a REQALIAS to "fix" it in the report:

   REQALIAS /scripts/getdoc/*.* /scripts/getdoc?$1&o=$1

Note that the url used for the hyperlink in the request report is based on the file name/alias, so it will be broken under this apporach, but the results should be more understandable.

For path_info CGI scripts, you can use the converse.

--
Jeremy Wadsack
Seven Simple Machines



Walter Ian Kaye wrote:

I have these situations:

1. My CGI scripts do not use .pl or .cgi extensions.

2. Some of my scripts use path_info args, but the Analog docs only
   mention querystring args.

3. A script may return different content-types, and I may want to count
   each content-type along with like "file" types.

For example:

  /scripts/getdoc?f=foo;o=H    --count as request for HTML file
  /scripts/getdoc?f=foo;o=x    --count as request for XML file

Ideally that sitch should be a path_info, and indeed that's how I wrote a getdoc script for Stanford, but it might not always work out that way....

  /scripts/note/computing/url/aim -- count as request for 'note' CGI
  /scripts/note/people/hhislop    -- count as request for 'note' CGI

Is it easy to configure Analog for this out of the "box"?
Would it be done with aliases and regexps? Or more?


thanks! -Walter (writing this a third time, after posting to newsgroup didn't work;)

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------





+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------

Reply via email to