Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# 缓存
proxy_cache_path /tmp/nginx/cache keys_zone=one:5m
loader_threshold=300 loader_files=2000;
server {
listen *:80; #换成你的IP地址
client_max_body_size 100M;
server_name YOUR_DOMAIN.COM; #换成你的域名
charset utf-8;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
charset on;
location / {
proxy_cache one;
access_log /var/log/nginx/YOUR_DOMAIN.COM.access.log; #换成你的域名
error_log /var/log/nginx/YOUR_DOMAIN.COM.error.log; #换成你的域名
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.