Skip to content
Ricky
English

Search

Searching… No matching pages. Matching pages are listed below. Search is unavailable. Please try again.

Nginx

All posts

Selectively Disabling HTTP/1.0 and HTTP/1.1 http { ... # Check for text-based browsers map $http_user_agent $is_text_browser { default 0; # Text-Based Browsers (not exhaustive) "~*^w3m" 1; "~*^Links" 1; …

1 minute

Nginx if 避坑指南 If is Evil… when used in location context if 指令由 rewrite 模块提供,显然它主要是用于 URL 重写领域。典型的 if 用法如下: http { server { listen 8080; if ($http_user_agent ~ MSIE) { rewrite ^(.*)$ /msie/$1 break; } if …

2 minutes

How Nginx Hides Upstream Errors Nginx allows enabling next upstream for the following seven retryable error codes 403 Forbidden 404 Not Found 429 Too Many Requests 500 Internal Server Error 502 Bad Gateway 503 …

1 minute