``` #PROXY-START/ location /目录名\.(gif|jpg|jpeg|png|bmp|swf|js|css)$ { proxy_pass http://地址; proxy_set_header Host 域名; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; add_header X-Cache $upstream_cache_status; #Set Nginx Cache proxy_ignore_headers Set-Cookie Cache-Control expires; add_header Cache-Control no-cache; expires 12h; } location /目录名/ { proxy_pass http://地址; proxy_set_header Host 域名; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; add_header X-Cache $upstream_cache_status; #Set Nginx Cache proxy_ignore_headers Set-Cookie Cache-Control expires; add_header Cache-Control no-cache; } #PROXY-END/ ``` Loading... ``` #PROXY-START/ location /目录名\.(gif|jpg|jpeg|png|bmp|swf|js|css)$ { proxy_pass http://地址; proxy_set_header Host 域名; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; add_header X-Cache $upstream_cache_status; #Set Nginx Cache proxy_ignore_headers Set-Cookie Cache-Control expires; add_header Cache-Control no-cache; expires 12h; } location /目录名/ { proxy_pass http://地址; proxy_set_header Host 域名; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; add_header X-Cache $upstream_cache_status; #Set Nginx Cache proxy_ignore_headers Set-Cookie Cache-Control expires; add_header Cache-Control no-cache; } #PROXY-END/ ``` Last modification:January 15, 2022 © Allow specification reprint Like 如果觉得我的文章对你有用,请随意赞赏
One comment
反驳对手观点时需更注重逻辑严密性。