如何在apache和tomcat中配置两个子域。

时间:2016-10-24 21:22:49

标签: java apache tomcat mod-proxy

如何在apache和tomcat设置中配置两个子域。 我已经有一个指向服务器的子域。如果请求带有/ test上下文,它将路由到tomcat。这个设置是通过mod_proxy

完成的
ProxyRequests Off
ProxyPass /test1 http://localhost:8080/test1
ProxyPassReverse /test1 http://localhost:8080/test1
SSLProxyEngine On
    SSLProxyCheckPeerCN on
    SSLProxyCheckPeerExpire on
<Location "/admin">
  Order allow,deny
  Allow from all
</Location>

现在我的问题是...... 我将在tomcat中托管另一个应用程序test2,我想知道天气可以将该应用程序指向新的子域。

例如

sample.example.com = static site in apache
sample.example.com/test = test1 application in tomcat
newsample.example.com = test2 application in tomcat

0 个答案:

没有答案