Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

I have a problem, php pages are fine, but html files or htm are showing a empty page #633

Open
GoogleCodeExporter opened this issue Apr 6, 2015 · 15 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.enable mod_pagespeed
2.load page html or htm
3.Page is shown empty.

What is the expected output? What do you see instead?
output is blank, istead I must be a html page.

What version of the product are you using (please check X-Mod-Pagespeed
header)?
1.3.25.3-2556
On what operating system?
centos 6 x64
Which version of Apache?
apache 2.2.15

Which MPM?

URL of broken page:
http://www.inmobiliarq.com/index2.html is blank

http://www.inmobiliarq.com/index2.html?ModPagespeedFilters=foo  is fine

Original issue reported on code.google.com by rubensed...@gmail.com on 4 Mar 2013 at 6:50

@GoogleCodeExporter
Copy link
Author

I can see this problem, not exactly as you described, though.  I have to turn 
?ModPagespeed=on and then I see a blank page, even if I add more filters with:

?ModPagespeed=on&ModPagespeedFilters=collapse_whitespace

But I don't think we have enough information to debug the problem.  Is there 
anything else you can tell us about your serving environment?  I've noticed 
that your response-headers say 'nginx'.  You are not using ngx_pagespeed, 
right?  nginx is just acting as a proxy in your network?


Is there anything else you've configured in your Apache setup that might be 
interacting with mod_pagespeed in some way?

Original comment by jmara...@google.com on 4 Mar 2013 at 1:20

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Then I have to install mod_pagespeed for apache y ngx_pagespeed for nginx for 
solve this problem. Or only I have to install ngx_pagespeed and uninstall 
mod_pagespeed. I am confused.
Best Regards

Original comment by rubensed...@gmail.com on 4 Mar 2013 at 5:25

@GoogleCodeExporter
Copy link
Author

Sorry I don't have a solution to the problem yet, I'm just trying to understand 
your setup.

Is your setup that you have apache/mod_pagespeed on internal server(s) and are 
using nginx as a reverse proxy?

Or something else?

Original comment by jmara...@google.com on 4 Mar 2013 at 6:55

@GoogleCodeExporter
Copy link
Author

Original comment by jmara...@google.com on 4 Mar 2013 at 7:50

  • Changed state: RequestClarification

@GoogleCodeExporter
Copy link
Author

Thats right, I am using plesk panel in a shared server, this can help you.
I give you a link with the same problem, but was solved disabling mod_pagespeed:
http://forum.parallels.com/showthread.php?t=262518
Best Regards.

Original comment by rubensed...@gmail.com on 4 Mar 2013 at 8:27

@GoogleCodeExporter
Copy link
Author

Thanks for reporting this; we definitely want to take a look at why we have a 
conflict between mod_pagespeed and an nginx proxy.

Jeff, can you take a look?

Original comment by jmara...@google.com on 4 Mar 2013 at 8:50

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

I read ngx_pagespeed project, but mod_pagespeed and nginx working fine, my 
websites in php load faster, the only quite problem is with html page that is 
shown empty. If this problem is fixed, would be great!
Greetings.

Original comment by rubensed...@gmail.com on 4 Mar 2013 at 8:57

@GoogleCodeExporter
Copy link
Author

Yeah we definitely want to fix it.

Can you try as a workaround:
  ModPagespeedDisallow *.html
Obviously this is not the workaround we want to go with long term, but until we 
sort this out at least it gets you the optimizations working for PHP.

Original comment by jmara...@google.com on 4 Mar 2013 at 8:59

@GoogleCodeExporter
Copy link
Author

Ok, I will try with this. Thank you very much for your help, and I am reporting 
any other issue that I found. I hope help you for improve this mod, that is 
amazing.
Best Regards.

Original comment by rubensed...@gmail.com on 4 Mar 2013 at 9:09

@GoogleCodeExporter
Copy link
Author

Hi, I'm experiencing exactly the same issue. If you need specific tests or 
logs, please let me know.

Original comment by thomasse...@gmail.com on 1 Aug 2013 at 5:14

@GoogleCodeExporter
Copy link
Author

Hi Thanks But I found the problem, I was using mod_pagespeed and nginx,
when I had ti use nginx_pagespeed, I sol ved problem stopping nginx, best
regards.
El 01/08/2013 00:14, <modpagespeed@googlecode.com> escribi�:

Original comment by rubensed...@gmail.com on 1 Aug 2013 at 6:13

@GoogleCodeExporter
Copy link
Author

What is really strange is: If I try to run a html site with wrong filters, the 
site works fine: 

 Invalid filter name: foo
[Thu Aug 01 10:44:24 2013] [warn] [mod_pagespeed 1.6.29.5-3346 @12054] Invalid 
PageSpeed query params or headers for request 
http://reitanlage-wildhof.de/test/index.html?ModPagespeed=on&ModPagespeedFilters
=foo. Serving with default options.

But if I use no filters, or just don't append anything, the site is empty

Original comment by xlrea...@gmail.com on 1 Aug 2013 at 8:54

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Okay, I've narrowed it down. The error is in the Head section of the HTML file.

This works:
-------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta name="generator" content="HTML Tidy for HTML5 (experimental) for Windows https://github.com/w3c/tidy-html5/tree/c63cc39" />

  <title>Reiterferien füendliche und Erwachsene - Taunus-Reitanlage "Wildhof"</title>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
  <meta http-equiv="X-UA-Compatible" content="IE=7" />
  <meta name="keywords" content= "Reiterferien Reitferien Erwachsene Kinder Jugendliche Kutschfahrten Kutsche Wanderreiten Taunus Hochtaunus" />
  <meta name="description" content= "Auf unserem Reiterhof finden Sie als Erwachsener, f Kind oder fendliche die Ruhe die Sie suchen und das Glueck auf dem Ruecken der Pferde. Reitferien: Geniessen Sie eine unbeschwerte Zeit!" />

</head>

<body>
This is a test
</body>
</html>
-------------------------------------------------------------


This does not:
-------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta name="generator" content="HTML Tidy for HTML5 (experimental) for Windows https://github.com/w3c/tidy-html5/tree/c63cc39" />

  <title>Reiterferien füendliche und Erwachsene - Taunus-Reitanlage "Wildhof"</title>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
  <meta http-equiv="X-UA-Compatible" content="IE=7" />
  <meta name="keywords" content= "Reiterferien Reitferien Erwachsene Kinder Jugendliche Kutschfahrten Kutsche Wanderreiten Taunus Hochtaunus" />
  <meta name="description" content= "Auf unserem Reiterhof finden Sie als Erwachsener, f Kind oder fendliche die Ruhe die Sie suchen und das Glueck auf dem Ruecken der Pferde. Reitferien: Geniessen Sie eine unbeschwerte Zeit!" />
  <meta name="verify-v1" content="KhIkaldsdsladllsadlasljdljasldjalsdvqO0amI=" />

</head>

<body>
This is a test
</body>
</html>
-------------------------------------------------------------

It seems the amount of <meta> tags or their lenght are the problem

Original comment by xlrea...@gmail.com on 1 Aug 2013 at 10:56

@GoogleCodeExporter
Copy link
Author

disable mod_aclr

its just commentout LoadModule in

/etc/httpd/conf.d/aclr.conf

Original comment by tak...@toolbox.co.jp on 19 Nov 2014 at 9:15

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant