Forum Moderators: phranque

Message Too Old, No Replies

DOCTYPE declaration missing with reverse proxy

         

burnside

3:18 am on Nov 11, 2010 (gmt 0)

10+ Year Member



I noticed that my DOCTYPE declaration is stripped when running a reverse proxy. Does anyone know how I can force the DOCTYPE to stay?

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


Thanks!

burnside

3:39 am on Nov 11, 2010 (gmt 0)

10+ Year Member



Ooo, might have found a solution:

[apache.webthing.com...]
ProxyHTMLDoctype

Will test it out later on.

jdMorgan

2:56 am on Nov 18, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, the question might better be asked, "What is stripping my DocType (without authorization) and how do I turn that unwanted DocType stripping off?"

Please let us know how you get on with that test.

Jim

burnside

7:06 pm on Nov 18, 2010 (gmt 0)

10+ Year Member



Oh, forgot to reply back with my test. Everything worked. Just added this directive to my configuration:

ProxyHTMLDoctype XHTML