同一个 websphere 服务器上的 2 个应用程序如何看到彼此的静态内容?
我们有一台 websphere 服务器,上面运行着多个应用程序。它们都在不同的配置文件上运行,但它们能够以某种方式访问彼此的静态内容。
例如,以下 URL 都返回图像...
http://firstapp.com/images/image.gif
http://secondapp.com/images/image.gif
...当图像仅存在于第一个应用程序的项目中时!每个域都指向不同的 IP,然后将这些 IP 路由到服务器上的不同端口。
我们在 websphere 配置文件中看不到任何明显的东西。有人以前见过这个吗?我们将不胜感激任何帮助!
更新:不幸的是,我在大约一个月的时间内无法对服务器进行故障排除甚至分析。我很确定问题出在 websphere apache 插件配置中。
We have one websphere server with multiple applications running on it. They're all running on separate profiles, but they are somehow able to access each others static content.
For example, the following URLs both return images...
http://firstapp.com/images/image.gif
http://secondapp.com/images/image.gif
...when the image only exists in the project of the first app! The domains each point to different IPs, which are then routed to different ports on the server.
We can't see anything obvious in the websphere configuration files. Anyone seen this before? We'd appreciate any help!
UPDATE: I won't have access to troubleshoot or even analyze the server for about a month, unfortunately. I'm pretty sure the problem is in the websphere apache plugin configuration.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我需要额外的意见来帮助你。
首先,图像是 webapp 上下文根吗?
从 URL 来看,我假设情况确实如此。
我还假设您在 WAS 前面有一个 Web 服务器,因为您没有指定 WAS 服务器实例的端口号。
firstapp.com 和 secondaryapp.com 分别是什么(是主机名)。我想确定您在提供这些 URL 时没有吞掉上下文根。
如果使用 Web 服务器插件(如果您通过 URL 看到的端口 80 进行访问,就是这种情况),它会将请求路由给谁?
我想一旦我收到您对上述内容的意见,我就能为您提供帮助。
曼鲁
I need additional inputs to help you.
First thing, is images a webapp context root?
From the URL i am assuming that is the case.
I am also assuming that you are fronting the WAS with a web server as you are not specifying the port number of the WAS Server instances.
WHat is firstapp.com and secondapp.com (is that a host name). I want to ascertain that you are not swallowing the context root when you provided these URLs.
If the Web Server plugin is used (which is the case if you are accessing via port 80 as seen by the URL), whom does it route the request to?
I guess i will be able to help you once i have your inputs on the above.
Manglu
您是否有由 IBM Apache 或类似机构提供的内容?这就是我首先会看到的。
Do you have content fronted up by IBM Apache or similar? That's what I'd look at in the first instance.