Nginx redirect https to http based on browser language
Since my server is far away, I'd like to redirect https to http when browser language is Chinese (zh). Following code work well in Apache: RewriteEngine On RewriteCond %{HTTPS} on RewriteCond %{HTTP:Accept-Language} ^zh [NC] RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] But I…