Advertisement
Ualde

nginx.conf

Dec 23rd, 2014
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. user www www;
  2. worker_processes 1;
  3.  
  4. error_log /var/log/nginx/error.log;
  5. pid /var/run/nginx.pid;
  6.  
  7.  
  8. events {
  9. worker_connections 10000;
  10. # multi_accept on;
  11. }
  12.  
  13.  
  14. http {
  15. ##
  16. # Basic Settings
  17. ##
  18. fastcgi_buffers 8 64k;
  19. fastcgi_buffer_size 128k;
  20. sendfile on;
  21. tcp_nopush on;
  22. tcp_nodelay on;
  23. keepalive_timeout 65;
  24. types_hash_max_size 2048;
  25. client_max_body_size 100m;
  26. server_tokens off;
  27.  
  28. include /etc/nginx/mime.types;
  29. default_type application/octet-stream;
  30.  
  31.  
  32. ##
  33. # Logging Settings
  34. ##
  35. access_log /var/log/nginx/access.log;
  36. error_log /var/log/nginx/error.log;
  37.  
  38.  
  39. ##
  40. # Gzip Settings
  41. ##
  42. gzip on;
  43. gzip_disable "msie6";
  44. gzip_vary on;
  45. gzip_proxied any;
  46. gzip_comp_level 6;
  47. gzip_buffers 16 8k;
  48. gzip_http_version 1.1;
  49. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  50.  
  51. ##
  52. # Virtual Host Configs
  53. ##
  54. upstream php-fpm {
  55. server 127.0.0.1:54000;
  56. }
  57.  
  58. include /etc/nginx/sites-enabled/*;
  59.  
  60. proxy_cache off;
  61.  
  62. map $scheme $server_https {
  63. default off;
  64. https on;
  65. }
  66.  
  67. server {
  68. listen 80;
  69. server_name localhost;
  70. root /www/localhost/htdocs;
  71. ssi on;
  72. location / {
  73. index index.php index.html index.htm;
  74. }
  75. }
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement