使用apache mod_proxy缺少Doctype HTML部署 [英] Missing Doctype HTML Deployment using apache mod_proxy
问题描述
我有一个奇怪的问题...
I have a strange problem...
我的Vaadin应用程序在我的计算机上(本地)运行良好。我刚刚部署了网站,现在遇到了问题:
My Vaadin Application is working fine on my computer (locally). I just deployed the website and now I have a problem:
<!Doctype html>
标记第一行丢失。我不知道为什么,但是我认为这引起了一些问题,因为网站以怪癖模式显示。
The <!Doctype html>
tag in the first line is missing. I don't know why it is, but I think this is causing some problems, because the Website is being displayed in Quirks mode.
有趣的是,当我
我只是将应用程序导出到war文件中并进行了部署。
I simply exported the application to a war file and deployed it.
到目前为止,我在互联网上还没有找到任何解决方案...
I haven't found any soloution on the Internet so far...
这是Tomcat设置问题还是其他问题?
Is this a Tomcat setting problem or anything else?
推荐答案
已经发现了问题!
我正在使用apache mod_proxy处理我的Web应用程序。未在proxy_html.conf中设置html文档类型。我只需要在proxy_html.conf中将ProxyHTMLDocType定义为HTML 5。
I was using apache mod_proxy to handle my web application. The html doctype was not set in the proxy_html.conf. I simply had to define the ProxyHTMLDocType to HTML 5 in the proxy_html.conf.
proxy_html.conf:
proxy_html.conf:
ProxyHTMLDocType "<!DOCTYPE html>" // Sets the Doctype to HTML5
有关更多信息,请参见:
for further information just see:
http://www.xinotes.org/notes/note/762 /
这篇关于使用apache mod_proxy缺少Doctype HTML部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!