views:

17

answers:

0

Hello all.

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 location mysite.org nginx must forward to mysite.org/uk

How to do it?

Thanks.