httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christos Jonathan Hayward <christos.jonathan.hayw...@gmail.com>
Subject [users@httpd] IE8 thinks SHTML is "text.html"
Date Fri, 27 Jan 2012 21:31:10 GMT
I posted this originally at
http://serverfault.com/questions/354313/how-can-i-get-apache2-to-serve-up-shtml-files-as-content-type-text-html-and-nand
thought maybe I'd ask here:

--

I'm working on a website, implemented as shtml, and when I try to load the
home page (http://simplyclassicremodeling.com) from IE8, it says it can't
open the file because it transferred as Content-Type "text.html". The page
loads fine from Chrome, and  in Firefox.

httpd.conf has:

Options Includes Indexes FollowSymLinks ExecCGI
AddHandler cgi-script .cgi .pl
AddType text/html .shtml
AddHandler server-parsed .shtml

and further down:

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddOutputFilterByType DEFLATE text/html text/plain text/xml
text/javascript application/javascript

Are the "AddType" and "AddOutputFilter" transposed? Based on this
information, would you know why IE8 would think .shtml files are being sent
as Content-Type: "text.html"? Is there a way to globally ask Apache, "If
you're going to transfer as 'text.html', use 'text/html' instead?

Thanks,

-- 
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.

Author Bio <http://jonathanscorner.com/author/> • Books<http://cjshayward.com/>
 • *Email <christos.jonathan.hayward@gmail.com>* •
Facebook<http://www.facebook.com/christos.jonathan.hayward>
 • Google Plus <http://jonathanscorner.com/plus> •
LinkedIn<http://www.linkedin.com/in/jonathanhayward>
 • Twitter <http://twitter.com/JonathansCorner> •
*Web<http://jonathanscorner.com/>
* • What's New? <http://jonathanscorner.com/>
I invite you to visit my "theology, literature, and other creative works"
site. *See a random page! <http://random.jonathanscorner.com/>*

Mime
View raw message