根据具有apache virtualhost的url重定向到不同的服务器

时间:2014-07-10 18:50:09

标签: linux apache virtualhost mod-proxy

我有一个在端口80上运行的apache web服务器,它使用我的Web应用程序重定向到tomcat7服务器:

<VirtualHost *:80>
  ServerName mysite.com
  ErrorLog /var/log/error.log
  CustomLog /var/log/apache2/proxy-access.log  combined
  UseCanonicalName Off
  ProxyPass / http://localhost:8080/
  ProxyPassReverse  / http://localhost:8080/
</VirtualHost>

我想要一些网址(以&#34; / req&#34; substring开头)与其他端口(如8081)上的C ++服务器一起提供,以获得更高的性能。我怎样才能在apache中设置它?那可能吗?

提前完成。

0 个答案:

没有答案
相关问题