legacy-knowledge-base
公開されました Sep. 10, 2025

リダイレクションが発生しない

written-by

Sivakumar Perumal

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • portal-ext.propertiesに以下のプロパティを設定しても、定義されたドメインへのリダイレクトが行われず、 警告メッセージが表示されます。
    #
    #redirect.url.security.mode=
    #redirect.url.security.mode=159.113.202.96
    redirect.url.security.mode=ip

    #
    # Input a list of comma delimited domains which the portal is allowed to
    # redirect to. Input a blank list to allow any domain.
    #
    redirect.url.domains.allowed=dxp-test.myplanlink.com

    #
    # Input a list of comma delimited IPs which the portal is allowed to
    # redirect to. Input a blank list to allow any IP. SERVER_IP will be
    # replaced with the IP of the host server
    redirect.url.ips.allowed=127.0.0.1,SERVER_IP

環境

  • Liferay 7.1

解決策

  • portal.propertiesでは、redirectionプロパティを以下のように定義しています。
    ##
    ## Redirect
    ##

    #
    # Set this property to "ip" or "domain" for the redirect security method. If
    # set to "domain", the portal will only redirect users to domains listed in
    # the property "redirect.url.domain.allowed". If set to "ip", the portal
    # will only redirect to domains whose IP address resolve to an IP address
    # listed in the property "redirect.url.ip.allowed".
    #
    #redirect.url.security.mode=domain
    redirect.url.security.mode=ip

    #
    # Input a list of comma delimited domains which the portal is allowed to
    # redirect to. Input a blank list to allow any domain. Specifying a domain
    # with a leading "*." allows redirects to subdomains.
    #
    redirect.url.domains.allowed=

    #
    # Input a list of comma delimited IPs which the portal is allowed to
    # redirect to. Input a blank list to allow any IP. SERVER_IP will be
    # replaced with the IP of the host server.
    #
    redirect.url.ips.allowed=127.0.0.1,SERVER_IP
  • 各物件の記載情報によると、以下の2つの方法でしか使用できないようです。
    1. IP: 'IP'モードに設定されている場合、プロパティは以下のように使用する必要があります。、リダイレクトは定義されたIPアドレスに基づいて行われます。
    redirect.url.security.mode=ip

    redirect.url.domains.allowed=

    redirect.url.ips.allowed=127.0.0.1,159.113.202.96

    SERVER_IP is replaced by the IP address of your host machine
    2. ドメイン:Domain」モードに設定されている場合、このプロパティは以下のように使用されます。、定義されたドメインに基づいてリダイレクトが行われます
    redirect.url.security.mode=domain

    redirect.url.domains.allowed=dxp-test.myplanlink.com

    redirect.url.ips.allowed=127.0.0.1,SERVER_IP
did-this-article-resolve-your-issue

legacy-knowledge-base