Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 68706 invoked by uid 500); 24 Jun 2003 14:43:33 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 68629 invoked from network); 24 Jun 2003 14:43:32 -0000 Received: from mail17.messagelabs.com (62.231.131.67) by daedalus.apache.org with SMTP; 24 Jun 2003 14:43:32 -0000 X-VirusChecked: Checked X-Env-Sender: AidanWhitehall@Fairbanks.co.uk X-Msg-Ref: server-30.tower-17.messagelabs.com!1056465812!11124 X-StarScan-Version: 5.0.6; banners=fairbanks.co.uk,-,- Received: (qmail 3577 invoked from network); 24 Jun 2003 14:43:32 -0000 Received: from host217-37-201-145.in-addr.btopenworld.com (HELO whipsnade.TheZoo) (217.37.201.145) by server-30.tower-17.messagelabs.com with SMTP; 24 Jun 2003 14:43:32 -0000 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 24 Jun 2003 15:43:32 +0100 Message-ID: <237C58DB1104A24EB7EEDEECCFCE9D9764AF45@whipsnade.TheZoo> X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Equivalent of IIS custom 404 thread-index: AcM6W3NnMeBY1eYXSJSdvEoccvwqWgAAG5Xw From: "Aidan Whitehall" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] Equivalent of IIS custom 404 Thanks for the reply, Robert. > Well, did it show up in the access log? This is in the error log [snip] File does not exist: pathToWebRoot/go/casestudies, referer: http://localhost/ and this entry in the access log [snip] "GET /go/casestudies HTTP/1.1" 200 21016 "http://localhost/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)" > Let me see if I understand your setup correctly. >=20 > * You have a 404 error document set to /go/index.cfm > * You request a non-existent document /go/casestudies > * That invokes /go/index.cfm > * Here you want gain knowledge about the original request > (/go/casestudies), but are unable to? That's it _exactly_. AFAICT, IIS is *incorrectly* returning the value of the query string variable as "casestudies". We can tell that the original request http://www.fairbanks.co.uk/go/casestudies doesn't contain a query string, but in IIS, if you add a custom 404 for that folder and tell the web server to serve up "/go/index.cfm" when a 404 is thrown, the ColdFusion variable cgi.query_string in the page "/go/index.cfm" evaluates to "casestudies". I believed that the cgi scope (certainly in ColdFusion) contained a collection of environment variables, some provided by the client and some by the web server. I guessed that IIS incorrectly reported the query_string to ColdFusion as "casestudies". I was using this behaviour in "/go/index.cfm" to determine what the original request was. It appears as though Apache was reports the information correctly -- i.e. that there was no query string in the original request, nor in the redirection. However, I'd have thought some other cgi variable would contain the value "casestudies", perhaps cgi.http_referer. Unfortunately, it doesn't seem to -- if you dump the entire cgi associative array to the page, the string "casestudies" doesn't appear anywhere. --=20 Aidan Whitehall Macromedia ColdFusion Developer Fairbanks Environmental Ltd +44 (0)1695 51775 Queen's Awards Winner 2003 ________________________________________________________________________ This=20e-mail=20has=20been=20scanned=20for=20all=20viruses=20by=20Star=20I= nternet.=20The service=20is=20powered=20by=20MessageLabs.=20For=20more=20information=20on= =20a=20proactive anti-virus=20service=20working=20around=20the=20clock,=20around=20the=20gl= obe,=20visit: http://www.star.net.uk ________________________________________________________________________ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org