[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: <Files> problem, pulling my dam hair out
From: Hans Poo <hans () integranet ! cl>
Date: 2001-11-30 13:57:34
[Download RAW message or body]
El Jue 29 Nov 2001 19:37, Chuck Carson escribió:
> I have the following config:
>
> apache 1.3.22 with perl 1.26 built statically
>
> I want to use perl to dynamically generate html pages, so I have .pl
> files under DOCUMENT_ROOT.
>
> I have this config:
>
> Alias /perl /usr/local/apache/cgi-bin
> <Directory /usr/local/apache/cgi-bin >
> SetHandler perl-script
> PerlHandler Apache::Registry
> Options +ExecCGI
> </Directory>
> <Files *.pl>
> SetHandler perl-script
> PerlHandler Apache::Registry
> Options ExecCGI
> </Files>
>
> Whenever I try and get a perl script from a web browser, it pops up a
> dialog asking to save the damn file. I have tried Netscape 4.79 on NT
> and Unix as well as IE 5.5. I have configured a server in this manner
> probably 100 times, I cannot find what I a missing this particuliar
> time.
>
>
> Anyone have any ideas?
>
> Thanks,
> Chuck
>
>
> Chuck Carson
> Systems Administrator
> chuck.carson@syrrx.com <mailto:chuck.carson@syrrx.com>
> 858.202.4188 Office
> 858.442.0827 Mobile
> 858.623.0460 Fax
The content type is not getting rigth to the browser !
If you are using a funny extension for your files you need the apache
AddType directive.
AddType text/html .myextension
Maybe you are just forgeting to send the http Content-Type: text/html as your
first instruction. There are many ways to do it:
print "Content-Type:text/html\n\n";
or
use CGI qw/:standard/;
print header;
or the mod_perl way....
In any case, you miss to Put a mod_perl directive "PerlSendHeader on" (to fix
malformer headers) in your directory configuration.
Hans Poo
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic