LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [Resolved] Content Encoding Error on .html but not .htm (same file, renamed)

Reply
 
Thread Tools Display Modes
  #1  
Old 06-06-2010, 12:25 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Default [Resolved] Content Encoding Error on .html but not .htm (same file, renamed)

I have a customer who just has a very simple index.html in their public_html which is failing with this:
http://www.screen-shot.net/2010-06-06_1523.png

If I change the file name to .htm (from .html) it loads perfectly fine. If I leave it as .html and I go into the LiteSpeed Admin control panel and disable GZIP compression it loads fine.

I've never seen this issue before but admittedly not very many of our customers use .html files as most use .php.

I verified the issue with Enterprise v 4.0.13 and 4.0.14.

I did remove the .htaccess in the folder to make sure it wasn't causing an issue. I also made sure that GZIP Compression was disabled in their "Optimize Website" portion of their cPanel.
__________________
Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
http://www.mddhosting.com/

Last edited by NiteWave; 06-07-2010 at 05:58 PM..
Reply With Quote
  #2  
Old 06-06-2010, 02:22 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Any ideas? I really need to get this resolved.
__________________
Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
http://www.mddhosting.com/
Reply With Quote
  #3  
Old 06-06-2010, 03:23 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Can you check the response header with firebug, I need to know what exact header causes the problem.
Have you tried different browser?

How about rename the file to "index2.html"? Try that file under a different domain?
I think it should be some thing special for that domain.
Reply With Quote
  #4  
Old 06-06-2010, 03:55 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Quote:
Originally Posted by mistwang View Post
Can you check the response header with firebug, I need to know what exact header causes the problem.
Have you tried different browser?

How about rename the file to "index2.html"? Try that file under a different domain?
I think it should be some thing special for that domain.
It's a newly created cPanel account (nothing special, nothing custom) no .htaccess file.

If you want to open a ticket with me in your support system I'm more than happy to give details and server access but I will check myself as well.
__________________
Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
http://www.mddhosting.com/
Reply With Quote
  #5  
Old 06-06-2010, 03:59 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Here's the headers for index.htm (which works fine)
Code:
Response Headersview source
Content-Encoding	gzip
Vary	Accept-Encoding
Date	Sun, 06 Jun 2010 23:03:23 GMT
Server	LiteSpeed
Accept-Ranges	bytes
Connection	close
Etag	"403-4c0c28ae-0"
Last-Modified	Sun, 06 Jun 2010 23:01:02 GMT
Content-Type	text/html
Content-Length	545
Request Headersview source
Host	[redacted]
User-Agent	Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.0 ( .NET CLR 3.5.30729)
Accept	text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language	en-us,en;q=0.5
Accept-Encoding	gzip,deflate
Accept-Charset	ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive	115
Connection	keep-alive
Pragma	no-cache
Cache-Control	no-cache
When I do CTRL+F5 on index.html (reload without cache) it literally is blank and shows nothing in FireBug. When I press F5 (reload with cache) the headers look the same to me:
Code:
Response Headersview source
Date	Sun, 06 Jun 2010 23:04:28 GMT
Server	LiteSpeed
Accept-Ranges	bytes
Connection	Keep-Alive
Keep-Alive	timeout=5, max=100
Etag	"403-4bcca9a5-0"
Last-Modified	Mon, 19 Apr 2010 19:06:13 GMT
Content-Type	text/html
Content-Range	bytes 1-1026/1027
Content-Length	1026
Request Headersview source
Host	[redacted]
User-Agent	Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.0 ( .NET CLR 3.5.30729)
Accept	text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language	en-us,en;q=0.5
Accept-Encoding	gzip,deflate
Accept-Charset	ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive	115
Connection	keep-alive
Range	bytes=1-
If-Range	"403-4bcca9a5-0"
Cache-Control	max-age=0
__________________
Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
http://www.mddhosting.com/

Last edited by MikeDVB; 06-06-2010 at 04:05 PM..
Reply With Quote
  #6  
Old 06-06-2010, 04:49 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
When access the file with
Quote:
curl -H "Accept-Encoding: gzip" .../index.html
The response body is blank.
Something is wrong, can you enable debug logging and check the debug log?
Or strace the child lshttpd process to find out what happened?
Please file a bug report to bug@litespeedtech... if you believe it is a bug.
Reply With Quote
  #7  
Old 06-06-2010, 05:28 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Quote:
Originally Posted by mistwang View Post
When access the file with

The response body is blank.
Something is wrong, can you enable debug logging and check the debug log?
Or strace the child lshttpd process to find out what happened?
Please file a bug report to bug@litespeedtech... if you believe it is a bug.
I'd rather just give you access to the server and have you do whatever testing you want as I do believe it's a bug (although maybe an obscure one).

Just keep in mind it is a production server so please do your best to avoid making any changes that could cause downtime.

Just respond to my PM and tell me what details you need.
__________________
Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
http://www.mddhosting.com/
Reply With Quote
  #8  
Old 06-06-2010, 05:39 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
I sent over the server details to bug@litespeedtech...
__________________
Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
http://www.mddhosting.com/

Last edited by mistwang; 06-07-2010 at 07:47 AM.. Reason: mask email address
Reply With Quote
  #9  
Old 06-07-2010, 07:49 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
The problem is the gzip cache for that file is blank, maybe the timestamp on the file is older than the gzip cache, so the cache was not updated. After touching the file, the gzip cache updated and page served properly.
Reply With Quote
  #10  
Old 06-07-2010, 07:52 AM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Very interesting - is there a particular reason this happened and a setting to perhaps change to prevent it from happening again or is it just a one-off type of issue.

Touching a file is easy and is a quick resolution so it's not a major deal as long as it doesn't happen often (which this is the first in over 8 months).
__________________
Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
http://www.mddhosting.com/
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:13 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.