# if
「Module ngx_http_rewrite_module/if」
「If Is Evil」
# Determine whether the user uses IE browser if ($http_user_agent ~ MSIE) { rewrite ^(.*)$ /msie/$1 break; } # Determine whether the referer is legal # Refer to the valid_referers directive if ($invalid_referer) { return 403; }
references
- WikiNotes/http rewrite module
- Module ngx_http_rewrite_module
- Modify $request_uri in Nginx
- Nginx reverse proxy + URL rewrite
- Nginx proxy_pass root and specific url only
- how to reverse proxy via nginx a specific url?
- How to preserve request url with nginx proxy_pass
- NGINX proxy_pass with URI modification