Received: (qmail 79630 invoked by uid 501); 29 Jun 2000 07:47:47 -0000 Message-Id: <20000629074747.79628.qmail@locus.apache.org> Date: 29 Jun 2000 07:47:47 -0000 From: Benedict Lofstedt Reply-To: benedict@daimi.au.dk To: submit@bugz.apache.org Subject: CGI scriptsget wrong URL when accessed through same virtual host as proxy X-Send-Pr-Version: 3.110 >Number: 6253 >Category: mod_proxy >Synopsis: CGI scriptsget wrong URL when accessed through same virtual host as proxy >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Jun 29 00:50:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: benedict@daimi.au.dk >Release: 1.3.12 >Organization: apache >Environment: Seen on servers running under Solaris2.7 and Irix6.5 >Description: I set up http://www.daimi.au.dk:80 as my proxy server, and call the CGI script http://www.daimi.au.dk/cgi-benedict/test-cgi [standard print environment script] The REQUEST_URI environment variable delivered to the script is wrong: REQUEST_URI=http://www.daimi.au.dk/cgi-benedict/test-cgi The REQUEST_URI should be REQUEST_URI=/cgi-benedict/test-cgi If I access http://www/cgi-benedict/test-cgi , i.e. don't use the FQDN, I get the correct REQUEST_URI. Examle: CGI test script report: ============================================================ Parameters: ------------------------------------------------------------ argc is 0 Environment: ------------------------------------------------------------ _=/sbin/env SERVER_ADMIN=webadm@daimi.au.dk QUERY_STRING= SERVER_SIGNATURE=
Apache/1.3.12 Server at www.daimi.au.dk Port 80
PATH=/usr/local/bin:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/etc:/usr/etc:/usr/bin/X11 SCRIPT_FILENAME=/users/benedict/cgi-bin/test-cgi REMOTE_PORT=25799 HTTP_HOST=www.daimi.au.dk GATEWAY_INTERFACE=CGI/1.1 SERVER_ADDR=130.225.16.13 HTTP_ACCEPT_ENCODING=gzip REQUEST_URI=http://www.daimi.au.dk/cgi-benedict/test-cgi SERVER_SOFTWARE=Apache/1.3.12 (Unix) mod_perl/1.24 REQUEST_METHOD=GET SERVER_NAME=www.daimi.au.dk HTTP_ACCEPT_CHARSET=iso-8859-1,*,utf-8 HTTP_USER_AGENT=Mozilla/4.7C-SGI [en] (X11; I; IRIX 6.5 IP32) Remote_Host= HTTP_PROXY_CONNECTION=Keep-Alive HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* HTTP_ACCEPT_LANGUAGE=en SCRIPT_NAME=/cgi-benedict/test-cgi SERVER_PORT=80 SERVER_PROTOCOL=HTTP/1.0 REMOTE_ADDR=130.225.19.88 TZ=MET-1MET DST,85/02:00:00,302/03:00:00 DOCUMENT_ROOT=/home/www/htdocs Standard input:: ------------------------------------------------------------ ============================================================ >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]