Stas,
Thanks for the quick reply. I think I may had the
PperlOptions +ParseHeaders
Commented out at some point. I am still don't fully understand mod_perl
And the Apache configuration. I was experimenting and did not restart my apache server.
I restarted my server. Now everything looks normal.
The header is no longer displayed in the WebPage anymore.
It is just not easy to get started. Now I can take advantage of
Mod_perl.
Kemin
> PerlModule Apache2
> Alias /perl/ /usr/local/apache2/cgi-bin/
> <Location /perl>
> #SetHandler modperl
> SetHandler perl-script
> # PerlInterScope handler # will not work, copied from Apache 2 book
> PerlResponseHandler ModPerl::Registry
> PerlOptions +ParseHeaders
> Options +ExecCGI
> </Location>
>
> The only problem is when a simple script
>
> #!/usr/bin/perl -w
> #test.pl
> print "Content-type: text/html\n\n";
> Print "<html><head>....<./head><body> foo bar </body></html>";
>
>
>
> When requested from the browser, it displays the source of my code (the
> literal of the two lines above) not the end result of HTML parsing
> (foo bar).
> This must be due to a silly error on my part. Can someone give me a
> starting point?
That means that Apache doesn't know it has to run it. How do you issue your
request? It should be:
http://example.com/perl/test.pl
^^^^^^
What does get added to logs/access_log when you run this request?
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
**********************************************************************
Proprietary or confidential information belonging to Ferring Holding SA or to one of its affiliated companies may be contained in the message. If you are not the addressee indicated in this message (or responsible for the delivery of the message to such person), please do not copy or deliver this message to anyone. In such case, please destroy this message and notify the sender by reply e-mail. Please advise the sender immediately if you or your employer do not consent to e-mail for messages of this kind. Opinions, conclusions and other information in this message represent the opinion of the sender and do not necessarily represent or reflect the views and opinions of Ferring.
**********************************************************************