x-forwarded series support for reverse proxy
-
The language is detected by URL created from
_SERVER ['HOST']andis_ssl (), but since the pattern used for comparison is made fromget_option ('home'), the detection will be wrong if the site placed behind reverse proxy.In the case of
X-Forwarded-ProtoandX-Forwarded-Hostare set, it will be helpful to generate URLs from them. Thanks.現状は
_SERVER['HOST']とis_ssl()から作られたURLで言語が判定されていますが、比較に使われるパターンはget_option('home')から作られているためリバースプロクシの後ろに置かれていると判定がうまくいきません。X-Forwarded-ProtoとX-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.