[Webcalendar] No header problems with Mod_perl 2 and apache 2
Greg W. Smith
greg a t winstontitle.com
Mon, 16 Aug 2004 16:02:45 -0500
I have scanned the list, and seen that other people have had this
problem, however none of their solutions have fixed my problem. I may
be missing something really easy, but I cannot seem to get webcal to
work with mod_perl (2.0) and apache 2.0.50. Everything works great
until I try to get mod_perl working and then I don't get a header
anymore.. I have added the following to my httpd.conf:
<IfModule mod_perl.c>
PerlRequire "/usr/local/apache2/cgi-bin/wcal/startup.pl"
Alias /webcal /usr/local/apache2/cgi-bin/wcal/
<Directory /usr/local/apache2/cgi-bin/wcal>
AllowOverride All
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI +FollowSymLinks
</Directory>
</IfModule>
Alias /i "/usr/local/apache2/htdocs/wcal/images"
<Directory "/usr/local/apache2/htdocs/wcal/images">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
My directory setup is as follows:
/usr/local/apache2/htdocs/wcal
/usr/local/apache2/cgi-bin/wcal/
/usr/local/apache2/wcal/server1/.etc....
This is the errror I get in my logs:
[Mon Jul 19 20:50:36 2004] [error] [client 10.0.0.9] malformed header
from script. Bad heade
r=gn=left colspan=2 bgcolor=#ccc: wcal.pl, referer:
http://madmax/cgi-bin/wcal/wcal.pl
[Mon Jul 19 20:50:36 2004] [warn] /cgi-bin/wcal/wcal.pl did not send an
HTTP header
Am I missing something simple here? Any Help would be greatly appreciated.
This is what actually gets generated once I log in:
Content-type: text/html; charset=ISO-8859-1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"><HTML><HEAD><META HTTP-EQUIV="refresh" CONTENT="300">
<TITLE>Calendar Greg's Calendar</TITLE>
<LINK REL="stylesheet" TYPE="text/css"
HREF="/wcal/images/css/nobody-_-default.css">
<LINK REL="stylesheet" TYPE="text/css" HREF="/wcal/images/css/Greg.css">
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
var cis = new Array(14); var i;
for(i=0;i<14;i++){cis[i]=new Image();cis[i].src="/wcal/images/z"+i+".gif";}