You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Christos Jonathan Hayward <ch...@gmail.com> on 2012/01/27 22:58:39 UTC

[users@httpd] Re: IE8 thinks SHTML is "text.html"

P.S. The headers are:

GET http://simplyclassicremodeling.com/ HTTP/1.0

HTTP/1.1 200 OK
Date: Fri, 27 Jan 2012 21:57:54 GMT
Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.9-dev DAV/2
PHP/5.2.6
Accept-Ranges: bytes
Cache-Control: max-age=2592000, public
Expires: Sun, 26 Feb 2012 21:57:54 GMT
X-UA-Compatible: IE=Edge,chrome=1
Connection: close
Content-Type: text.html

On Fri, Jan 27, 2012 at 3:31 PM, Christos Jonathan Hayward <
christos.jonathan.hayward@gmail.com> wrote:

> 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 <ch...@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/>*
>
>


-- 
[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 <ch...@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/>*

Re: [users@httpd] Re: IE8 thinks SHTML is "text.html"

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
>> > Content-Type: text.html

On 28.01.12 12:25, Christos Jonathan Hayward wrote:
>Yes; I was wondering what was causing that. It turned out that ssl.conf was
>giving a content-type of text.html.

now this is one of reasons why I think that the server config should 
NOT be splitted to different files unless really needed.

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"To Boot or not to Boot, that's the question." [WD1270 Caviar]

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: IE8 thinks SHTML is "text.html"

Posted by Christos Jonathan Hayward <ch...@gmail.com>.
Yes; I was wondering what was causing that. It turned out that ssl.conf was
giving a content-type of text.html.

On Sat, Jan 28, 2012 at 11:13 AM, Jonesy <gm...@jonz.net> wrote:

> On Fri, 27 Jan 2012 15:58:39 -0600, Christos Jonathan Hayward wrote:
> >
> > P.S. The headers are:
> >
> > GET http://simplyclassicremodeling.com/ HTTP/1.0
> >
> > HTTP/1.1 200 OK
> > Date: Fri, 27 Jan 2012 21:57:54 GMT
> > Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.9-dev DAV/2
> > PHP/5.2.6
> > Accept-Ranges: bytes
> > Cache-Control: max-age=3D2592000, public
> > Expires: Sun, 26 Feb 2012 21:57:54 GMT
> > X-UA-Compatible: IE=3DEdge,chrome=3D1
> > Connection: close
> :
> :
> > Content-Type: text.html
>                    ^
> Hell-OO-OO!         !
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
[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 <ch...@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/>*

[users@httpd] Re: IE8 thinks SHTML is "text.html"

Posted by Jonesy <gm...@jonz.net>.
On Fri, 27 Jan 2012 15:58:39 -0600, Christos Jonathan Hayward wrote:
>
> P.S. The headers are:
>
> GET http://simplyclassicremodeling.com/ HTTP/1.0
>
> HTTP/1.1 200 OK
> Date: Fri, 27 Jan 2012 21:57:54 GMT
> Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.9-dev DAV/2
> PHP/5.2.6
> Accept-Ranges: bytes
> Cache-Control: max-age=3D2592000, public
> Expires: Sun, 26 Feb 2012 21:57:54 GMT
> X-UA-Compatible: IE=3DEdge,chrome=3D1
> Connection: close
:
:
> Content-Type: text.html
                    ^
Hell-OO-OO!         !



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org