apache重定向到tomcat无法正常工作

时间:2016-09-15 15:00:31

标签: apache tomcat redirect

我正在尝试将AWS Webserver重定向到AWS Linux中的Tomcat。当我通过CName时,它必须验证ping sso然后再回到apache。 Apache中没有静态组件,我只是将其用作web层重定向到tomcat。 Tomcat在端口8080上运行.Apcahe在端口80上运行.App ELB正在运行。当我通过 exampleCNAME.com 时,它会验证PING并进入apache的“index.html”页面示例。它没能去Tomcat。我无法从Apache重定向到Tomcat。

我对这些配置进行了处理 server.xml中

  Server port="11401" shutdown="msp_EXAMPLE_tomcat_01_SHTDN">
    <Service name="Catalina">
        <Connector port="8080" />
        <Engine name="Catalina" defaultHost="localhost">
            <Logger className="org.apache.catalina.logger.FileLogger" />
            <Host name="localhost" appBase="webapps" unpackWARs="true"    autoDeploy="true">
                <Valve    className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" conditionUnless="NO_ACCESS_LOG" pattern="%{X-Forwarded-For}i %{CUSTOMER_APP_DATA_REF_KEY}i %{remote_user}i %t &quot;%r&quot; %s %b &quot;%{ssoId}i&quot;" />
            </Host>
        </Engine>
    </Service>
</Server>

的httpd.conf:

<VirtualHost *:80>
 RewriteEngine on
    ProxyPreserveHost On
    ProxyErrorOverride On
    ProxyRequests off

 ProxyPass / http://internal-EXAMPLE-ELB-12345.us-east-1.elb.amazonaws.com/example/
    ProxyPassReverse / http://internal-EXAMPLE-ELB-12345.us-east-1.elb.amazonaws.com/example/
</VirtualHost>

0 个答案:

没有答案