You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Nathan Neulinger <nn...@umr.edu> on 1997/04/28 21:28:28 UTC

Re: [Apache] Re: CGIWrap Problems (fwd)

I believe users have had better luck with Apache 1.2x by using Handlers 
for this type of usage with CGIwrap.

You might forward him to the cgiwrap mailing list... They've done some of 
this type of stuff before.

-- Nathan

On Mon, Apr 28, 1997 at 12:23:27PM -0700, sameer wrote:
> 	Yeah. Alexei made this change in 1.2 for some reason I don't
> quite understand or remember.. his explanation is in the archives
> somewhere. For the pre-1.2 behavior, use FILEPATH_INFO and
> FILEPATH_TRANSLATED.
> 
> > I thought this was expected behaviour... If I go to /cgi-bin/printenv/asdf
> > the PATH_TRANSLATED is DOCUMENT_ROOT/asdf.  This corresponds exactly to
> > what the submitter is seeing.  PATH_TRANSLATED is just PATH_INFO after
> > uri->filename remapping.
> > 
> > I'll bet cgiwrapd exists, and so the pathinfo on that request is
> > /userid00/test-cgi.pl/klgeddie/test
> > 
> > Dean
> > 
> > On Mon, 28 Apr 1997, Rob Hartill wrote:
> > 
> > > 
> > > Anyone seen this or understand why it's happening ?
> > > 
> > > basically, with:
> > > 
> > >   ScriptAlias /cgi-bin/ /magma/web/cgi-bin/cgiwrapd/userid00/
> > > 
> > > calling the URL:
> > > 
> > >   /cgi-bin/test-cgi.pl/klgeddie/test
> > > 
> > > produces:
> > > 
> > >   SCRIPT_NAME: '/cgi-bin'
> > >   PATH_INFO: '/test-cgi.pl/klgeddie/test'
> > >   PATH_TRANSLATED: '/magma/users/u20/userid00/public_html/userid00/test-cgi.pl/klgeddie/test'
> > >  
> > > 
> > > 
> > > ---------- Forwarded message ----------
> > > Date: Mon, 28 Apr 1997 12:54:25 -0400
> > > From: Kevin Geddie <kl...@magma.ca>
> > > To: apache-bugs@mail.apache.org
> > > 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:
> > > 
> > > <VirtualHost some.domain.com>
> > >   DocumentRoot /magma/users/u20/userid00/public_html
> > >   ServerAdmin klgeddie@magma.ca
> > >   ServerName some.domain.com
> > >   TransferLog logs/access_log.some.domain.com
> > >   # SRM Options
> > >   ScriptAlias /cgi-bin/ /magma/web/cgi-bin/cgiwrapd/userid00/
> > > </VirtualHost>
> > > 
> > > 
> > > The "cgiwrapd" program outputs debug information, and then attempts to run
> > > the CGIWrap program.  I am attempting to access the URL:
> > > 
> > > http://some.domain.com/cgi-bin/test-cgi.pl/klgeddie/test
> > > 
> > > 
> > > The CGIWrap program is getting the following environment variable settings
> > > from the Apache web server:
> > > 
> > > Environment Variables:
> > >      QUERY_STRING: ''
> > >       SCRIPT_NAME: '/cgi-bin'
> > >         PATH_INFO: '/test-cgi.pl/klgeddie/test'
> > >   PATH_TRANSLATED:
> > > '/magma/users/u20/userid00/public_html/userid00/test-cgi.pl/klgeddie/test'
> > >       REMOTE_USER: '<NULL>'
> > >       REMOTE_HOST: 'jupiter.magma.ca'
> > >       REMOTE_ADDR: '204.191.36.80'
> > > 
> > > 
> > > 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/test-cgi.pl/klgeddie/test
> > > r->protocol        HTTP/1.0
> > > r->uri             /cgi-bin/test-cgi.pl/klgeddie/test
> > > pa_req->filename   /magma/users/u20/userid00/public_html/userid00
> > > pa_req->path_info  /test-cgi.pl/klgeddie/test
> > > 
> > > 
> > > Thank you.
> > > 
> > > 
> > > ---------------------------------------------------------------------------
> > > Kevin Geddie                               Fax:    (613) 228-8313
> > >   Magma Communications Ltd.                Phone:  (613) 228-3565
> > >   Internet Service Provider                WWW:    http://www.magma.ca/
> > >   OTTAWA, Ontario, Canada                  Email:  klgeddie@magma.ca
> > > 
> > > 
> > > 
> > 
> 
> 
> -- 
> Sameer Parekh					Voice:   510-986-8770
> President					FAX:     510-986-8777
> C2Net
> http://www.c2.net/				sameer@c2.net


------------------------------------------------------------
Nathan Neulinger                  Univ. of Missouri - Rolla
EMail: nneul@umr.edu                    Computer Center
WWW: http://www.umr.edu/~nneul      SysAdmin: rollanet.org