Message from discussion
mod_caucho + mod_pagespeed
Received: by 10.91.66.3 with SMTP id t3mr302522agk.25.1305637390339;
Tue, 17 May 2011 06:03:10 -0700 (PDT)
X-BeenThere: mod-pagespeed-discuss@googlegroups.com
Received: by 10.90.248.11 with SMTP id v11ls44669agh.7.gmail; Tue, 17 May 2011
06:03:09 -0700 (PDT)
Received: by 10.91.10.32 with SMTP id n32mr339732agi.24.1305637389403;
Tue, 17 May 2011 06:03:09 -0700 (PDT)
Received: by 10.91.10.32 with SMTP id n32mr339731agi.24.1305637389362;
Tue, 17 May 2011 06:03:09 -0700 (PDT)
Return-Path: <jmara...@google.com>
Received: from smtp-out.google.com (wpay11.hot.corp.google.com [172.24.198.11])
by gmr-mx.google.com with ESMTPS id u7si674825yba.6.2011.05.17.06.03.09
(version=TLSv1/SSLv3 cipher=OTHER);
Tue, 17 May 2011 06:03:09 -0700 (PDT)
Received-SPF: pass (google.com: domain of jmara...@google.com designates 172.24.198.11 as permitted sender)
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jmara...@google.com designates 172.24.198.11 as permitted sender) smtp.mail=jmara...@google.com; dkim=pass (test mode) header...@google.com
Received: from kpbe19.cbf.corp.google.com (kpbe19.cbf.corp.google.com [172.25.105.83])
by smtp-out.google.com with ESMTP id p4HD39fK020393
for <mod-pagespeed-discuss@googlegroups.com>; Tue, 17 May 2011 06:03:09 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta;
t=1305637389; bh=z78xAt+UKUoyse4tp1qQZVkGsqE=;
h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject:
To:Content-Type;
b=ydWSJvnMVhKvCNH+V8dpf7W9Vw/EDzEwB56Zpy0hyYyGQ0pTqe673evp1D2vz1rH9
nTZL3RsEgy0Nx3HKonNWA==
Received: from pxi17 (pxi17.prod.google.com [10.243.27.17])
by kpbe19.cbf.corp.google.com with ESMTP id p4HD37WN001996
(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
for <mod-pagespeed-discuss@googlegroups.com>; Tue, 17 May 2011 06:03:07 -0700
Received: by pxi17 with SMTP id 17so344574pxi.34
for <mod-pagespeed-discuss@googlegroups.com>; Tue, 17 May 2011 06:03:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=google.com; s=beta;
h=domainkey-signature:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type;
bh=FoTKnlxtPhKxyPnS/hS2TUScCMSXGmRd3CqcyYMq00s=;
b=df7wxre63atNcde6UZNfdxlwsRdMVRs7YHXS2lvO3eYoN5FWpSO061MXVURuyucBK+
M0mqtE1jZYkAC+DK98OQ==
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=google.com; s=beta;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:content-type;
b=vOthT37YbeWX1anoOjN0JengeTAX+IEAQM43f+kOAwd/ts2YYlqpLBKW6W0Nkk0opL
kYCooVJ3OJc86ds27IoQ==
Received: by 10.68.68.196 with SMTP id y4mr996624pbt.427.1305637387184; Tue,
17 May 2011 06:03:07 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.44.9 with HTTP; Tue, 17 May 2011 06:02:47 -0700 (PDT)
In-Reply-To: <e13815d2-e445-4313-8b07-fd7318267...@s16g2000prf.googlegroups.com>
References: <782a0dba-5e0f-4ad5-b6e9-f9d94a8ba...@z7g2000prh.googlegroups.com>
<BANLkTi=85j4siKyJh7emg5NB32RLQK-...@mail.gmail.com> <7f6748aa-4aba-4d77-95b8-30778cea2...@e17g2000prj.googlegroups.com>
<BANLkTi=4FhL6gVk6E--w=hqYdtLBok_...@mail.gmail.com> <e13815d2-e445-4313-8b07-fd7318267...@s16g2000prf.googlegroups.com>
From: Joshua Marantz <jmara...@google.com>
Date: Tue, 17 May 2011 09:02:47 -0400
Message-ID: <BANLkTimFYAu0TPsREPShTU1yjUL+vvi...@mail.gmail.com>
Subject: Re: mod_caucho + mod_pagespeed
To: mod-pagespeed-discuss@googlegroups.com
Content-Type: multipart/alternative; boundary=000e0cd1aae4ab296704a3786405
X-System-Of-Record: true
--000e0cd1aae4ab296704a3786405
Content-Type: text/plain; charset=ISO-8859-1
I took a look at mod_caucho.c and it seems OK to me. Can you increase the
logging level? As of yesterday's release, 0.9.17.6, mod_pagespeed prints
the reason that it skips a rewrite (e.g. content doesn't look like HTML,
content-type is not text/html, content is already gzipped, module is
disabled, etc). It does this at loglevel 'debug', so just put:
loglevel debug
in httpd.conf and restart apache. Refresh your jsp page from your browser
and then take a look at the log. You don't want to leave it running with
'loglevel debug' for a long time or the log file will fill your disk.
The log is usually some place like /var/log/apache2/error.log depending on
your distro.
-Josh
On Tue, May 17, 2011 at 5:30 AM, kishore <ero...@gmail.com> wrote:
> Josh,
>
> Yes you are right m not getting the X-Mod-Pagespeed header for the jsp
> pages.
>
> I don't find any option to attach mod_caucho.so file, so i have sent
> it to your Email Address.
>
> Thanks,
> Kishore
>
>
> On May 16, 7:18 pm, Joshua Marantz <jmara...@google.com> wrote:
> > Just to clarify, for the '.jsp' pages they are being served without a
> > X-Mod-Pagespeed header?
> >
> > I think your ModPagespeedAllow will not have any effect. The default
> setup
> > is that nothing is disallowed based on just name. If it were, your
> > ModPagespeedAllow would not work because the full URL is used for
> comparison
> > and your pattern starts with a "/". You probably just want
> "ModPagespeedAllow
> > *.jsp*". But I don't think that's the problem.
> >
> > I think it's more likely that mod_pagespeed is not seeing the pages
> created
> > by mod_caucho at all because of filter ordering. in Apache or some other
> > inter-module compatibility issue.
> >
> > I dug a little deeper looking for mod_caucho.c on the net to figure out
> how
> > it interacts with the Apache filter chain, but all I could find was what
> > looked like a version that was built for Apache 1.*. If you have the
> Apache
> > 2.* version of of mod_caucho.c handy could you attach it or send a link
> > where I could find it?
> >
> > On Mon, May 16, 2011 at 9:28 AM, kishore <ero...@gmail.com> wrote:
> > > Hi Josh,
> >
> > > Thanks for the quick reply.
> >
> > > Yes mod_pagespeed is enabled in my server, when i access a html page
> > > filters are working properly (collapse_whitespace,remove_comments) and
> > > m able to see X-Mod-Pagespeed: 0.9.16.9-576 header.
> >
> > > But the same is not happening for jsp pages.
> >
> > > I dont use 'ModPagespeedDisallow' and this is the exact text for
> > > ModPagespeedAllow,
> >
> > > ModPagespeedAllow /*.jsp*
> >
> > > Content-Type: text/html
> >
> > > Thanks,
> > > Kishore
> >
> > > On May 16, 5:09 pm, Joshua Marantz <jmara...@google.com> wrote:
> > > > I haven't heard of mod_caucho before but I just took a quick look.
> Could
> > > > you describe what's not working? Is mod_pagespeed enabled, the pages
> it
> > > > severs do not have the "X-Mod-Pagespeed" header?
> >
> > > > Can you give the exact text of your 'ModPagespeedAllow' directive,
> along
> > > > with any 'ModPagespeedDisallow' directives you may have added?
> >
> > > > What content-type is served by pages generated by mod_caucho?
> >
> > > > -Josh
> >
> > > > On Mon, May 16, 2011 at 3:34 AM, kishore <ero...@gmail.com> wrote:
> > > > > mod_caucho
>
--000e0cd1aae4ab296704a3786405
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I took a look at mod_caucho.c and it seems OK to me. =A0Can you increase th=
e logging level? =A0As of yesterday's release, 0.9.17.6, mod_pagespeed =
prints the reason that it skips a rewrite (e.g. content doesn't look li=
ke HTML, content-type is not text/html, content is already gzipped, module =
is disabled, etc). =A0It does this at loglevel 'debug', so just put=
:<div>
<br></div><div>=A0 loglevel debug</div><div><br></div><div>in httpd.conf an=
d restart apache. =A0Refresh your jsp page from your browser and then take =
a look at the log. =A0You don't want to leave it running with 'logl=
evel debug' for a long time or the log file will fill your disk.</div>
<div><br></div><div>The log is usually some place like /var/log/apache2/err=
or.log depending on your distro.</div><div><br></div><div>-Josh</div><div><=
br></div><div><div class=3D"gmail_quote">On Tue, May 17, 2011 at 5:30 AM, k=
ishore <span dir=3D"ltr"><<a href=3D"mailto:ero...@gmail.com">erosik@gma=
il.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;">Josh,<br>
<br>
Yes you are right m not getting the X-Mod-Pagespeed header for the jsp<br>
pages.<br>
<br>
I don't find any option to attach mod_caucho.so file, so i have sent<br=
>
it to your Email Address.<br>
<br>
Thanks,<br>
<font color=3D"#888888">Kishore<br>
</font><div class=3D"im"><br>
<br>
On May 16, 7:18=A0pm, Joshua Marantz <<a href=3D"mailto:jmara...@google.=
com">jmara...@google.com</a>> wrote:<br>
> Just to clarify, for the '.jsp' pages they are being served wi=
thout a<br>
> X-Mod-Pagespeed header?<br>
><br>
> I think your ModPagespeedAllow will not have any effect. =A0The defaul=
t setup<br>
> is that nothing is disallowed based on just name. =A0If it were, your<=
br>
> ModPagespeedAllow would not work because the full URL is used for comp=
arison<br>
> and your pattern starts with a "/". =A0You probably just wan=
t "ModPagespeedAllow<br>
> *.jsp*". =A0But I don't think that's the problem.<br>
><br>
> I think it's more likely that mod_pagespeed is not seeing the page=
s created<br>
> by mod_caucho at all because of filter ordering. in Apache or some oth=
er<br>
> inter-module compatibility issue.<br>
><br>
> I dug a little deeper looking for mod_caucho.c on the net to figure ou=
t how<br>
> it interacts with the Apache filter chain, but all I could find was wh=
at<br>
> looked like a version that was built for Apache 1.*. =A0If you have th=
e Apache<br>
> 2.* version of of mod_caucho.c handy could you attach it or send a lin=
k<br>
> where I could find it?<br>
><br>
</div><div><div></div><div class=3D"h5">> On Mon, May 16, 2011 at 9:28 A=
M, kishore <<a href=3D"mailto:ero...@gmail.com">ero...@gmail.com</a>>=
wrote:<br>
> > Hi Josh,<br>
><br>
> > Thanks for the quick reply.<br>
><br>
> > Yes mod_pagespeed is enabled in my server, when i access a html p=
age<br>
> > filters are working properly (collapse_whitespace,remove_comments=
) and<br>
> > m able to see X-Mod-Pagespeed: 0.9.16.9-576 header.<br>
><br>
> > But the same is not happening for jsp pages.<br>
><br>
> > I dont use 'ModPagespeedDisallow' and this is the exact t=
ext for<br>
> > ModPagespeedAllow,<br>
><br>
> > ModPagespeedAllow /*.jsp*<br>
><br>
> > Content-Type: text/html<br>
><br>
> > Thanks,<br>
> > Kishore<br>
><br>
> > On May 16, 5:09 pm, Joshua Marantz <<a href=3D"mailto:jmara...=
@google.com">jmara...@google.com</a>> wrote:<br>
> > > I haven't heard of mod_caucho before but I just took a q=
uick look. =A0Could<br>
> > > you describe what's not working? =A0Is mod_pagespeed ena=
bled, the pages it<br>
> > > severs do not have the "X-Mod-Pagespeed" header?<b=
r>
><br>
> > > Can you give the exact text of your 'ModPagespeedAllow&#=
39; directive, along<br>
> > > with any 'ModPagespeedDisallow' directives you may h=
ave added?<br>
><br>
> > > What content-type is served by pages generated by mod_caucho=
?<br>
><br>
> > > -Josh<br>
><br>
> > > On Mon, May 16, 2011 at 3:34 AM, kishore <<a href=3D"mail=
to:ero...@gmail.com">ero...@gmail.com</a>> wrote:<br>
> > > > mod_caucho<br>
</div></div></blockquote></div><br></div>
--000e0cd1aae4ab296704a3786405--