朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

apache和tomcat有什么联系

apache和tomcat有什么联系插图

apache和tomcat的联系:

1、Apache是普通服务器,本身只支持html即普通网页,可以通过插件支持php,还可以与Tomcat连通(Apache单向连接Tomcat,就是说通过Apache可以访问Tomcat资源,反之不然)。

2、Apache只支持静态网页,但像Jsp动态网页就需要Tomcat来处理。

3、Apache和Tomcat整合使用

如果客户端请求的是静态页面,则只需要Apache服务器响应请求;如果客户端请求动态页面,则是Tomcat服务器响应请求,将解析的JSP等网页代码解析后回传给Apache服务器,再经Apache返回给浏览器端。

这是因为jsp是服务器端解释代码的,Tomcat只做动态代码解析,Apache回传解析好的静态代码,Apache+Tomcat这样整合就可以减少Tomcat的服务开销。

4、Apache和Tomcat是独立的,在同一台服务器上可以集成。

文章来源于互联网: apache和tomcat有什么联系

赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » apache和tomcat有什么联系

评论 23

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #30

    This is a great tip especially to those fresh to the blogosphere.
    Simple but very accurate info… Thanks for
    sharing this one. A must read post!

  2. #29

    Thanks for finally writing about > apache和tomcat有什么联系 –
    VPS测评推荐网站 – 朱纯树博客 < Loved it!

  3. #28

    constantly i used to read smaller articles which also clear their motive, and that
    is also happening with this piece of writing which I am reading at this time.

  4. #27

    I believe this is one of the such a lot vital info for me.
    And i’m satisfied studying your article. But wanna observation on some basic things, The web site taste is great,
    the articles is really great : D. Just right activity, cheers

  5. #26

    You really make it seem so easy with your presentation but I find this
    matter to be really something which I think I would never understand.
    It seems too complicated and very broad for me. I am looking forward for your next
    post, I’ll try to get the hang of it!

    tinyurl.com2周前 (08-02)回复
  6. #25

    Hello, the whole thing is going sound here and ofcourse every one is sharing facts,
    that’s actually good, keep up writing.

  7. #24

    Thanks for sharing your thoughts on 杂七杂八.

    Regards

  8. #23

    My spouse and I stumbled over here coming from a
    different web page and thought I might as well check things out.
    I like what I see so now i’m following you. Look forward to looking at your web
    page repeatedly.

    http://tinyurl.com/1个月前 (07-07)回复