【问题标题】:Setting Tomcat to Cooperate with the Apache设置Tomcat与Apache合作
【发布时间】:2016-03-09 15:10:59
【问题描述】:

您好,在我的 VPS 中,我有 APACHE(PORT 80) 和 APACHE TOMCAT(PORT 8080) 我的委托人网站在 tomcat(domain.com) 上运行,我的问题是:

有没有办法让tomcat和apache同时合作?

domain.com =>带我到托管在 Tomcat 上的主要网站

domain.com/siteapache 或 siteapache.domain.com => 带我到托管在 apache 上的网站

【问题讨论】:

    标签: apache tomcat


    【解决方案1】:

    推荐的实现方式是让 apache httpd 在前面并委托请求。

    这里有一个关于如何配置tomcat的教程。

    https://tomcat.apache.org/connectors-doc/webserver_howto/apache.html

    在 apache 中使用VirtualHosts 控制流量。看这个例子:

    https://httpd.apache.org/docs/2.4/vhosts/examples.html

    【讨论】:

    猜你喜欢
    • 2012-06-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-21
    • 2016-06-01
    • 2012-03-05
    • 2012-01-15
    相关资源
    最近更新 更多