Daily Archives: September 9, 2020


install nginx


client_header_timeout, time when all header packets arrives nginx.
client_body_timeout, time when nginx hasn’t received a body packet, then timeout. NOT receiving whole body time. Kinda like read timeout.
send_timeout, similar to client_body_timeout. when nginx sends response to client, the time when nginx hasn’t received an ACK.
keepalive_timeout, connection becomes to idle when there is no traffic on it. keepalive_timeout destroys an idle connection when time arrives.

below will do longest prefix match. So if type http://localhost/blog. It will directs to www.allenlipeng47.com/blog url

server {

    location / {
        root /usr/share/nginx/html;
        index index.html index.htm;

    location /blog {
        proxy_pass http://www.allenlipeng47.com;