Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 20401
Status: rejected
Priority: 0/
Queue: CGI

People
Owner: MARKSTOS [...] cpan.org
Requestors: cpanbugs [...] ubc.pkts.ca
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: NPH and RewriteEngine in Apache
Download (untitled) / with headers
text/plain 671b
I've got a tiny nph-script, like so: #!/usr/bin/perl -wT use strict; use CGI qw/*table -nph :standard/; my $cgi = new CGI; $cgi->nph(1); print $cgi->header(-nph=>1); print "Hello world!\n"; It works when called as 'nph-myscript' and as 'myscript', but it prints "Hello world!" first and the headers after if I save it as nph-myscript and call it with a redirected request from Apache: RewriteEngine on RewriteBase /db/ RewriteRule ^study(.*) nph-myscript/study$1 In other words, it's ignoring the value of '-nph', nph() and -nph=>1, but paying attention to whether the *orginal* request started with nph- or not. This is with Apache 2.2.2 on Fedora Core 5 on an x86.
From: guest
Download (untitled) / with headers
text/plain 147b
I've trimmed it a bit more, and included it as an attachment, along with the rewrite rules and a recording of the underlying tcp traffic both ways.
Download as-nph.txt
text/plain 688b
GET /db/nph-data/study-1 HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060614 Fedora/1.5.0.4-1.2.fc5 Firefox/1.5.0.4 pango-text Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: UTF-8,* Keep-Alive: 300 Connection: keep-alive Cookie: PPA_ID=8bsijbssbqipis72nvci8dhgi2; webfx-tree-cookie-persistence=wfxt-4 Cache-Control: max-age=0 HTTP/1.1 200 OK Server: Apache/2.2.2 (Fedora) Date: Mon, 10 Jul 2006 21:57:03 GMT Content-Type: text/html; charset=ISO-8859-1 <pre>Hello world!</pre>
Download rewrite.conf
application/octet-stream 276b

Message body not shown because it is not plain text.

Download nph-data
application/octet-stream 136b

Message body not shown because it is not plain text.

Download as-db.txt
text/plain 820b
GET /db/study-1 HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060614 Fedora/1.5.0.4-1.2.fc5 Firefox/1.5.0.4 pango-text Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: UTF-8,* Keep-Alive: 300 Connection: keep-alive Cookie: PPA_ID=8bsijbssbqipis72nvci8dhgi2; webfx-tree-cookie-persistence=wfxt-4 HTTP/1.1 200 OK Server: Apache/2.2.2 (Fedora) Date: Mon, 10 Jul 2006 21:57:18 GMT Content-Type: text/html; charset=ISO-8859-1 <pre>Hello world!</pre> HTTP/1.1 200 OK Date: Mon, 10 Jul 2006 21:57:18 GMT Server: Apache/2.2.2 (Fedora) Content-Length: 0 Connection: close Content-Type: text/plain; charset=UTF-8
From: guest
From: guest
It's beginning to look like an Apache problem.
Download (untitled) / with headers
text/plain 146b
On Mon Jul 10 18:23:44 2006, guest wrote: Show quoted text
> It's beginning to look like an Apache problem.
OK, then we'll close this old bug in the CGI.pm queue.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.