Apache Tomcat作为Web服务器和容器 [英] Apache TomCat as web server and container

查看:138
本文介绍了Apache Tomcat作为Web服务器和容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Apache Tomcat 7,我建我的web应用程序,我也有Apache网络服务器在我的网站上存在CSS和HTML写道。我想在注入网站我的web应用程序。的我怎样才能让我的Tomcat作为Web服务器,集装箱和转让网站从Apache网络服务器到Tomcat 的。 ???

I have Apache tomcat 7 where I build my web application and I also have Apache Web Server where my web site exist wrote on Css and HTML. I want to inject my web app on web site. How can I make my Tomcat as web server and container and transfer web site from Apache WebServer to Tomcat. ???

我知道的tomcat也可以80端口上运行。刚才我用它来阅读文档如何使用mod_jk的AJP连接器与Tomcat的Apache网络服务器整合等做的,好像这是行不通的。

I know tomcat also can work on 80 port. Just I use to read documentation how to integrate Apache WebServer with Tomcat using mod_jk ajp connectors and etc to do, seems like it doesn't work.

推荐答案

如果你想使用Tomcat作为Web服务器(提供给您的.html和.css文件和可能的图像),那么你可以摆脱Apache Web服务器;你不再需要它,根据你的问题。然后,把所有的HTML / CSS /等之后。在的webapps / [应用程序根] / ,确保Tomcat的的conf / server.xml中更改为80端口,重新启动Tomcat的,你会好到哪里去。

If you want to use Tomcat as your web server (to serve your .html and .css files and probably images), then you can just get rid of the Apache Web Server; you no longer need it, according to your question. Then, after putting all your html/css/etc. under webapps/[app-root]/, make sure that all references to port 8080 in Tomcat's conf/server.xml are changed to port 80, reboot Tomcat, and you'll be good to go.

这篇关于Apache Tomcat作为Web服务器和容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆