Guest User

nginx.conf ab

a guest
Apr 7th, 2021
37
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  7. events
  8. {
  9. use epoll;
  10. worker_connections 51200;
  11. multi_accept on;
  12. }
  13.  
  14. http
  15. {
  16. include mime.types;
  17. #include luawaf.conf;
  18.  
  19. include proxy.conf;
  20.  
  21. default_type application/octet-stream;
  22.  
  23. server_names_hash_bucket_size 512;
  24. client_header_buffer_size 32k;
  25. large_client_header_buffers 4 32k;
  26. client_max_body_size 50m;
  27.  
  28. sendfile on;
  29. tcp_nopush on;
  30.  
  31. keepalive_timeout 60;
  32.  
  33. tcp_nodelay on;
  34.  
  35. fastcgi_connect_timeout 300;
  36. fastcgi_send_timeout 300;
  37. fastcgi_read_timeout 300;
  38. fastcgi_buffer_size 64k;
  39. fastcgi_buffers 4 64k;
  40. fastcgi_busy_buffers_size 128k;
  41. fastcgi_temp_file_write_size 256k;
  42. fastcgi_intercept_errors on;
  43.  
  44. gzip on;
  45. gzip_min_length 1k;
  46. gzip_buffers 4 16k;
  47. gzip_http_version 1.1;
  48. gzip_comp_level 2;
  49. gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml;
  50. gzip_vary on;
  51. gzip_proxied expired no-cache no-store private auth;
  52. gzip_disable "MSIE [1-6]\.";
  53.  
  54. limit_conn_zone $binary_remote_addr zone=perip:10m;
  55. limit_conn_zone $server_name zone=perserver:10m;
  56.  
  57. server_tokens off;
  58. access_log off;
  59.  
  60. server
  61. {
  62. listen 888;
  63. server_name phpmyadmin;
  64. index index.html index.htm index.php;
  65. root /www/server/phpmyadmin;
  66. try_files $uri $uri/ /index.php?$args;
  67.  
  68. #error_page 404 /404.html;
  69. include enable-php.conf;
  70.  
  71.  
  72.  
  73. # BEGIN WP Hide & Security Enhancer
  74. rewrite "^/6e8f32ffa38225bdb03eb9e7b91ea3f0/rewrite_test" /wp-content/plugins/wp-hide-security-enhancer-pro/include/rewrite-confirm.php last;
  75. # END WP Hide & Security Enhancer
  76.  
  77. location = /
  78. {
  79. #
  80. }
  81.  
  82. location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  83. {
  84. expires 30d;
  85. }
  86.  
  87. location ~ .*\.(js|css)?$
  88. {
  89. expires 12h;
  90. }
  91.  
  92. location ~ /\.
  93. {
  94. deny all;
  95. }
  96.  
  97.  
  98.  
  99. access_log /www/wwwlogs/access.log;
  100. }
  101. include /www/server/panel/vhost/nginx/*.conf;
  102. }
  103.  
  104.  
RAW Paste Data