nginx.conf 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # This file is based on /usr/local/nginx/conf/nginx.conf.default.
  2. user root;
  3. worker_processes auto;
  4. error_log stderr error;
  5. events {
  6. # This needed to be increased because the nginx error log said so.
  7. # http://nginx.org/en/docs/ngx_core_module.html#worker_connections
  8. worker_connections 65535;
  9. multi_accept on;
  10. }
  11. http {
  12. default_type application/octet-stream;
  13. client_body_temp_path /tmp;
  14. access_log off;
  15. server_tokens off;
  16. sendfile on;
  17. tcp_nopush on;
  18. keepalive_timeout 65;
  19. keepalive_disable none;
  20. keepalive_requests 1000;
  21. server {
  22. # For information on deferred, see:
  23. # http://nginx.org/en/docs/http/ngx_http_core_module.html#listen
  24. # http://www.techrepublic.com/article/take-advantage-of-tcp-ip-options-to-optimize-data-transmission/
  25. # The backlog argument to listen() is set to match net.ipv4.tcp_max_syn_backlog and net.core.somaxconn
  26. listen 8080 default_server deferred backlog=65535 reuseport;
  27. server_name localhost;
  28. location / {
  29. fastcgi_pass unix:/var/tmp/cppcms.sock;
  30. fastcgi_keep_conn on;
  31. fastcgi_split_path_info ^()((?:/.*))?$;
  32. fastcgi_param PATH_INFO $fastcgi_path_info;
  33. }
  34. }
  35. }