httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <>
Subject CGIWrap Problems (fwd)
Date Mon, 28 Apr 1997 18:55:06 GMT

Anyone seen this or understand why it's happening ?

basically, with:

  ScriptAlias /cgi-bin/ /magma/web/cgi-bin/cgiwrapd/userid00/

calling the URL:



  SCRIPT_NAME: '/cgi-bin'
  PATH_INFO: '/'
  PATH_TRANSLATED: '/magma/users/u20/userid00/public_html/userid00/'

---------- Forwarded message ----------
Date: Mon, 28 Apr 1997 12:54:25 -0400
From: Kevin Geddie <>
Subject: CGIWrap Problems

Hello.  I'm trying to get CGIWrap to run under Apache 1.2b8, and I believe
I have encountered a bug in Apache.  I am attempting to set up CGIWrap for
a virtual host.

Here are the lines in the httpd.conf file:

  DocumentRoot /magma/users/u20/userid00/public_html
  TransferLog logs/
  # SRM Options
  ScriptAlias /cgi-bin/ /magma/web/cgi-bin/cgiwrapd/userid00/

The "cgiwrapd" program outputs debug information, and then attempts to run
the CGIWrap program.  I am attempting to access the URL:

The CGIWrap program is getting the following environment variable settings
from the Apache web server:

Environment Variables:
      SCRIPT_NAME: '/cgi-bin'
        PATH_INFO: '/'
      REMOTE_HOST: ''
      REMOTE_ADDR: ''

I'm not exactly sure what's going on here, but I have a feeling that it
has something to do with parsing the ScriptAliased path, rather than the
requested path.

I played around with the code a bit, in the util_script.c module.
The add_cgi_vars() function apparently sets the appropriate CGI environment
variables.  I managed to figure out the following values in this function,
which may be of use to debuggers:

r->path_info       /userid00/
r->protocol        HTTP/1.0
r->uri             /cgi-bin/
pa_req->filename   /magma/users/u20/userid00/public_html/userid00
pa_req->path_info  /

Thank you.

Kevin Geddie                               Fax:    (613) 228-8313
  Magma Communications Ltd.                Phone:  (613) 228-3565
  Internet Service Provider                WWW:
  OTTAWA, Ontario, Canada                  Email:

View raw message