Support » Plugin: Bogo » x-forwarded series support for reverse proxy

  • The language is detected by URL created from _SERVER ['HOST'] and is_ssl (), but since the pattern used for comparison is made from get_option ('home'), the detection will be wrong if the site placed behind reverse proxy.

    In the case of X-Forwarded-Proto andX-Forwarded-Host are set, it will be helpful to generate URLs from them. Thanks.

    現状は _SERVER['HOST']is_ssl() から作られたURLで言語が判定されていますが、比較に使われるパターンは get_option('home') から作られているためリバースプロクシの後ろに置かれていると判定がうまくいきません。

    X-Forwarded-ProtoX-Forwarded-Host が設定されているときはそれらから URL を生成するようになると助かります。

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘x-forwarded series support for reverse proxy’ is closed to new replies.