How to rewrite location in nginx depending on the client-browser's language?

前端 未结 10 1968
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-02 17:25

How to rewrite location in nginx depending on the client-browser\'s language?

For example: My browser accept-language is \'uk,ru,en\'. When I request locati

10条回答
  •  死守一世寂寞
    2020-12-02 18:06

    You can use nginx_accept_language_module. Nginx has to be recompiled but its less work than integrating Lua.

    Link to github

提交回复
热议问题