【问题标题】:Is virtual directory mapping supported in Websphere?Websphere 是否支持虚拟目录映射?
【发布时间】:2013-03-13 08:17:12
【问题描述】:

有没有办法创建位于 Websphere 主目录之外的虚拟目录。换句话说,如何将网络虚拟路径映射到目录路径。

例如C:/Test/image.jpg 访问地址:http://localhost:9080/Test/image.jpg

我知道如何在 Weblogic 中使用 weblogic.xml 文件执行此操作,但不知道 Websphere。

【问题讨论】:

    标签: jakarta-ee websphere web.xml virtual-directory


    【解决方案1】:

    如果其他人遇到这个老问题,似乎可以通过使用 extendedDocumentRoot WebSphere 扩展

    扩展文档根目录 在以下情况下使用扩展的文档根工具 应用程序需要访问应用程序 Web 之外的文件 应用程序归档 (WAR) 目录。该设施使您能够 使用一个或多个目录路径配置应用程序 您可以提供静态文件和 JSP 文件。你可以使用这个属性 当应用程序需要访问存在于 Web 应用程序归档 (WAR) 目录。例如,如果几个 应用程序需要访问一组通用文件,您可以将 可以将每个应用程序链接到的目录中的公共文件 作为扩展文档根目录。

    来自 https://www.ibm.com/support/knowledgecenter/en/SSEQTP_9.0.0/com.ibm.websphere.base.doc/ae/rweb_jspengine.html https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.0.0/com.ibm.websphere.nd.doc/info/ae/ae/rweb_jsp_staticfile.html https://www.ibm.com/developerworks/community/forums/html/topic?id=d870176c-c16c-4153-9f96-537116074b14

    【讨论】:

      【解决方案2】:

      通常您使用 IHS(IBM Http Server)只是一个配置了 WebSphere 插件以实现负载平衡的 Apache 2。在那里你可以映射你所有的静态内容。

      检查:http://www-01.ibm.com/software/webservers/httpservers/

      问候。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-06-30
        • 1970-01-01
        • 2012-02-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多