All,
I am battling the strangest behavior. I have been battling this off and on
every since I began experimenting with mod perl. I am currently working with:
[Sat Jul 24 12:42:34 2004] [notice] SIGUSR1 received. Doing graceful restart
[Sat Jul 24 12:42:34 2004] [notice] Apache/1.3.31 (Unix) mod_perl/1.29
configured -- resuming normal operations
I've this in my httpd.conf:
<Location /online_testing/perl/>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
PerlSendHeader On
allow from all
</Location>
Now I can reproduce consistently the following. I have a file:
/usr/local/apache/htdocs/online_testing/perl/junk.pl
With this content:
[EMAIL PROTECTED] perl]# pwd
/usr/local/apache/htdocs/online_testing/perl
[EMAIL PROTECTED] perl]# cat junk.pl
#! /usr/local/bin/perl -w
# File: junk.pl
use strict;
print "Content-type: text/plain\n\n";
print "Hello, World!\n";
exit 0;
If I make the permissions:
[EMAIL PROTECTED] perl]# chmod -x junk.pl
[EMAIL PROTECTED] perl]# ll junk.pl
-rw-rw-r-- 1 darnold webexams 129 Jul 24 12:33 junk.pl
Then if I call this file in my browser with
http://scinux.redwoods.edu/online_testing/perl/junk.pl, I get the expected:
Forbidden
You don't have permission to access /online_testing/perl/junk.pl on this
server.
----------------------------------------------------------------------------
----
Apache/1.3.31 Server at scinux.redwoods.edu Port 80
Now if I change the permissions again:
[EMAIL PROTECTED] perl]# chmod +x junk.pl
[EMAIL PROTECTED] perl]# ll junk.pl
-rwxrwxr-x 1 darnold webexams 129 Jul 24 12:33 junk.pl
Then if I call this file again in my browser with
http://scinux.redwoods.edu/online_testing/perl/junk.pl, all is well and I
get the expected:
Hello, World!
Now, I close my browser. Reopen my browser. Type in the URL:
scinux.redwoods.edu/online_testing/perl/junk.pl
I now get the File Download dialog box asking if I want to "Open the file
from its current location" or "Save this file to disk."
This is reproducible every time. I am working on Windows 95 and using IE 5.5.
Does anybody have any suggestions?
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html