# server { # listen 8888 ; # listen 443 ssl http2; # server_name zhanganqi.com; #charset koi8-r; # access_log /var/log/nginx/zhanganqi.com.access.log main; # error_log /var/log/nginx/zhanganqi.com.error.log warn; #error_page 404 /404.html; # ssl_certificate /ssl/a.com/a.com.cer; # ssl_certificate_key /ssl/a.com/a.com.key; # redirect server error pages to the static page /50x.html # # error_page 500 502 503 504 /50x.html; # location = /50x.html { # root /usr/share/nginx/html; # } # # location / { # proxy_pass http://node:7001; # proxy_set_header Host $host:$server_port; # proxy_set_header X-Forwarded-Host $server_name; # proxy_set_header X-Real-IP $remote_addr; # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} # }