WebSphere 反向代理插件 - 跳过域 [英] WebSphere reverse proxy plugin - skipping domains

查看:48
本文介绍了WebSphere 反向代理插件 - 跳过域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果可能,希望有人能给我一些建议.

Hoping someone can give me some advice if possible.

我们的 DMZ 中有一个带有 WebSphere 插件的 Linux 机器.这指向运行 WebSphere Application Server 的 Windows 机器.

We have a Linux box in our DMZ with the WebSphere plugin. This points to a Windows box running WebSphere Application Server.

httpd 配置仅包含未指定 ServerAlias 的默认虚拟主机.在 httpd.conf 中的虚拟主机中设置了重定向,以将任何对 service.domain.com 的请求转发到 service.domain.com/wascontext1.Plugin-cfg.xml 设置了两个 uri 组,wascontext1wascontext2,但只有 1 个被主动使用.

httpd config only contains the default virtualhost with no ServerAlias specified. There is a redirect set up in the virtualhost in httpd.conf to forward any requests to service.domain.com to service.domain.com/wascontext1. Plugin-cfg.xml is set up with two uri groups, wascontext1 and wascontext2, but only 1 is actively used.

我想使用 Linux box 作为另一个完全独立于 WAS 的应用程序的反向代理.它将具有不同的域(即 dimsim.domain.com)但指向相同的 IP.

I want to use the Linux box as a reverse proxy for another application totally separate to WAS. It would have a different domain (i.e. dimsim.domain.com) but point to the same IP.

我打算为此添加另一个虚拟主机,但不确定 WebSphere 插件将如何处理它.据我所知,如果我设置它并转到 dimsim.domain.com/wascontext1,它将提供 WebSphere 内容,因为 httpd 将所有请求转发到插件.

I was going to add another virtualhost for this but am unsure exactly how the WebSphere plugin will behave with it. From what I understand if I set this up and went to dimsim.domain.com/wascontext1 it would serve the WebSphere content as httpd forwards all requests to the plugin.

有没有办法告诉httpd不要根据域名或虚拟主机向WebSphere插件发送请求?或者重写对 dimsim.domain.com/wascontext 的任何请求是否可以?

Is there a way to tell httpd to not send requests to the WebSphere plugin based on domain name or virtualhost? Or would doing a rewrite on any requests to dimsim.domain.com/wascontext be considered ok?

谢谢

jc

感谢您的回复!我将在第二个未使用的上下文中测试更改 plugin-cfg.xml 中的虚拟主机名,并让您知道它是如何进行的.

Thanks for the responses! I'll test changing the virtualhost name in plugin-cfg.xml on our second unused context and let you know how it goes.

推荐答案

一种不需要 plugin-cfg.xml 更改的解决方案:如果您使用基于 Apache 的 HTTP 服务器,则可以有条件地设置 per-request 变量"skipwas" 使 WAS 插件处理短路.

A solution that doesn't require plugin-cfg.xml changes: If you use an Apache-based HTTP server, you can conditionally set the per-request variable "skipwas" to short-circuit the WAS Plugin processing.

例如

SetEnvIf Host ^dimsim\.domain\.com$ skipwas=1

这篇关于WebSphere 反向代理插件 - 跳过域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆