nginx-acc-http.conf 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. user nginx;
  2. worker_processes 8;
  3. error_log /var/error.log info;
  4. worker_rlimit_nofile 10240;
  5. events {
  6. worker_connections 8192;
  7. multi_accept on;
  8. use epoll;
  9. }
  10. http
  11. {
  12. include mime.types;
  13. default_type application/octet-stream;
  14. fastcgi_buffer_size 32k;
  15. fastcgi_buffers 8 32k;
  16. underscores_in_headers on;
  17. client_max_body_size 1024M;
  18. tcp_nopush on;
  19. sendfile on;
  20. keepalive_timeout 65;
  21. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  22. '$status $body_bytes_sent "$http_referer" '
  23. '"$http_user_agent" "$http_x_forwarded_for"';
  24. server
  25. {
  26. listen 80;
  27. set $folder_name /var/www/html;
  28. server_name 121.89.212.167;
  29. root $folder_name;
  30. index index.html index.php;
  31. client_max_body_size 100m;
  32. proxy_connect_timeout 500s;
  33. proxy_read_timeout 500s;
  34. proxy_send_timeout 500s;
  35. fastcgi_connect_timeout 75;
  36. fastcgi_read_timeout 600;
  37. fastcgi_send_timeout 600;
  38. charset utf-8;
  39. location /logs {
  40. deny all;
  41. return 403;
  42. }
  43. location /data/log {
  44. deny all;
  45. return 403;
  46. }
  47. location / {
  48. index index.html index.htm index.php;
  49. }
  50. location /mshop {
  51. root $folder_name;
  52. autoindex on;
  53. index index.html index.htm index.php;
  54. try_files $uri $uri/ /mshop/index.html;
  55. }
  56. location /merchant {
  57. root $folder_name;
  58. autoindex on;
  59. index index.html index.htm index.php;
  60. try_files $uri $uri/ /merchant/index.html;
  61. }
  62. location ~ /mobile/[/\w]+\.php$ {
  63. root $folder_name;
  64. fastcgi_pass 172.16.110.28:9100;
  65. fastcgi_index index.php;
  66. fastcgi_param SCRIPT_FILENAME $folder_name$fastcgi_script_name;
  67. include fastcgi_params;
  68. }
  69. location ~ /mobile/[/\w]+\.html$ {
  70. try_files $uri $uri/ /mobile/index.html;
  71. }
  72. location ~ /racc/[/\w]+\.php$ {
  73. root $folder_name;
  74. fastcgi_pass 172.16.110.28:9101;
  75. fastcgi_index index.php;
  76. fastcgi_param SCRIPT_FILENAME $folder_name$fastcgi_script_name;
  77. include fastcgi_params;
  78. }
  79. location ~ \.php$ {
  80. add_header Cache-Control no-store;
  81. root $folder_name;
  82. fastcgi_pass 172.16.110.28:9000;
  83. fastcgi_index index.php;
  84. fastcgi_param SCRIPT_FILENAME $folder_name$fastcgi_script_name;
  85. include fastcgi_params;
  86. }
  87. }
  88. }