https://www.pusdn.com
以下配置文件为原始根配置,目录位置PUSDN/www/server/nginx/conf/nginx.conf
vhost.zip

添加了443和节点参与状态:backup、down、
vhost (1).zip

image.png
会话跟随:cookie、ip地址、关闭
vhost (2).zip

服务器:1C1G1M

  1. user www www;
  2. worker_processes auto;
  3. error_log /www/wwwlogs/nginx_error.log crit;
  4. pid /www/server/nginx/logs/nginx.pid;
  5. worker_rlimit_nofile 51200;
  6. events
  7. {
  8. use epoll;
  9. worker_connections 51200;
  10. multi_accept on;
  11. }
  12. http
  13. {
  14. include mime.types;
  15. #include luawaf.conf;
  16. include proxy.conf;
  17. default_type application/octet-stream;
  18. server_names_hash_bucket_size 512;
  19. client_header_buffer_size 32k;
  20. large_client_header_buffers 4 32k;
  21. client_max_body_size 50m;
  22. sendfile on;
  23. tcp_nopush on;
  24. keepalive_timeout 60;
  25. tcp_nodelay on;
  26. fastcgi_connect_timeout 300;
  27. fastcgi_send_timeout 300;
  28. fastcgi_read_timeout 300;
  29. fastcgi_buffer_size 64k;
  30. fastcgi_buffers 4 64k;
  31. fastcgi_busy_buffers_size 128k;
  32. fastcgi_temp_file_write_size 256k;
  33. fastcgi_intercept_errors on;
  34. gzip on;
  35. gzip_min_length 1k;
  36. gzip_buffers 4 16k;
  37. gzip_http_version 1.1;
  38. gzip_comp_level 2;
  39. gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml;
  40. gzip_vary on;
  41. gzip_proxied expired no-cache no-store private auth;
  42. gzip_disable "MSIE [1-6]\.";
  43. limit_conn_zone $binary_remote_addr zone=perip:10m;
  44. limit_conn_zone $server_name zone=perserver:10m;
  45. server_tokens off;
  46. access_log off;
  47. server
  48. {
  49. listen 888;
  50. server_name phpmyadmin;
  51. index index.html index.htm index.php;
  52. root /www/server/phpmyadmin;
  53. location ~ /tmp/ {
  54. return 403;
  55. }
  56. #error_page 404 /404.html;
  57. include enable-php.conf;
  58. location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  59. {
  60. expires 30d;
  61. }
  62. location ~ .*\.(js|css)?$
  63. {
  64. expires 12h;
  65. }
  66. location ~ /\.
  67. {
  68. deny all;
  69. }
  70. access_log /www/wwwlogs/access.log;
  71. }
  72. include /www/server/panel/vhost/nginx/*.conf;
  73. }

1C1G1M:
image.png链接