【问题标题】:URL Rewriting is not working after migrating to Apache 2.4 from Apache 2,2从 Apache 2,2 迁移到 Apache 2.4 后,URL 重写不起作用
【发布时间】:2020-02-26 20:44:29
【问题描述】:

所有系统都在域中配置,应用程序登录通过 SSO (LDAP) 完成。

以前它是在 Apache 2.2 上配置的,并且运行良好。 迁移到 Apache 2.4 后,URL 重写没有按预期工作。

使用 Apache 2.2 重写 URL

RewriteEngine On
RewriteLog "rules.rewrite.log"
RewriteLogLevel 5

CustomLog "E:/Program Files/Apache2/conf/headertrack.log" "S %t %{REMOTE_USER}i %{REMOTE_UID}i %h %U"

RewriteRule ^/$ /cognos [L,R=301]

使用 Apache 2.4 重写 URL

RewriteEngine On
LogLevel alert rewrite:trace5

CustomLog "${SRVROOT}/conf/headertrack.log" "S %t %{REMOTE_USER}i %{REMOTE_UID}i %h %U"

RewriteRule ^/$ /cognos

'headertrack.log' 文件具有相同格式的日志,并且还打印用户名。

能否请您提供正确的 Apache 2.2 的 URL 重写规则

如果需要其他详细信息,请告诉我。

【问题讨论】:

    标签: url-rewriting cognos apache2.4 cognos-10 apache2.2


    【解决方案1】:

    CA 网关安装提供了示例模板:

    您可以使用随 IBM Cognos Analytics 提供的示例配置文件之一。示例文件位于 gateway_component_install_location/cgi-bin/templates 中,其中 gateway_component_install_location 是安装网关组件的目录。下表描述了示例文件。为您的环境选择文件:

    https://www.ibm.com/support/knowledgecenter/en/SSEP7J_11.1.0/com.ibm.swg.ba.cognos.inst_cr_winux.doc/t_config_ish_with_ssl.html

    【讨论】:

    • 我正在使用 Cognos 10.2.2,并且给定的文档链接适用于 Cognos Analytics 11。我认为只有 - RewriteRule ^/$ /cognos 需要更改。
    猜你喜欢
    • 2013-11-30
    • 2017-03-04
    • 2010-12-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-01
    • 1970-01-01
    • 2016-12-07
    相关资源
    最近更新 更多