Advertisement
Guest User

Untitled

a guest
Feb 8th, 2012
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. #user nobody;
  2. worker_processes 1;
  3.  
  4. error_log /mnt/adatok/www/log/nginx_error.log;
  5. #error_log logs/error.log notice;
  6. #error_log logs/error.log info;
  7.  
  8. pid /var/run/nginx.pid;
  9.  
  10.  
  11. events {
  12. use epoll;
  13. worker_connections 1024;
  14. }
  15.  
  16.  
  17. http {
  18. include mime.types;
  19. default_type application/octet-stream;
  20.  
  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.  
  25. #access_log logs/access.log main;
  26. server_names_hash_bucket_size 128;
  27. client_header_buffer_size 32k;
  28. large_client_header_buffers 4 32k;
  29. sendfile on;
  30. tcp_nopush on;
  31.  
  32. keepalive_timeout 65;
  33. limit_zone slimits $binary_remote_addr 1m;
  34. limit_conn slimits 3;
  35.  
  36. gzip on;
  37.  
  38. gzip_min_length 1k;
  39. gzip_buffers 4 16k;
  40. gzip_http_version 1.0;
  41. gzip_comp_level 2;
  42. gzip_types text/plain application/x-javascript text/css application/xml;
  43. gzip_vary on;
  44.  
  45. server {
  46. listen 80;
  47. server_name 192.168.1.1 speeedfire.ath.cx;
  48.  
  49. charset utf-8;
  50.  
  51. fastcgi_connect_timeout 300;
  52. fastcgi_send_timeout 300;
  53. fastcgi_read_timeout 300;
  54. fastcgi_buffer_size 32k;
  55. fastcgi_buffers 4 32k;
  56. fastcgi_busy_buffers_size 32k;
  57. fastcgi_temp_file_write_size 32k;
  58. client_body_timeout 10;
  59. client_header_timeout 10;
  60. send_timeout 60;
  61. output_buffers 1 32k;
  62. postpone_output 1460;
  63. #access_log /mnt/adatok/www/log/host.access.log main;
  64.  
  65. location / {
  66. root /mnt/adatok/www/webroot;
  67. index index.html index.htm index.php;
  68. }
  69.  
  70. #error_page 404 /404.html;
  71.  
  72. # redirect server error pages to the static page /50x.html
  73. #
  74. error_page 500 502 503 504 /50x.html;
  75. location = /50x.html {
  76. root html;
  77. }
  78.  
  79. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  80. #
  81. #location ~ \.php$ {
  82. # proxy_pass http://127.0.0.1;
  83. #}
  84.  
  85. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  86. #
  87. location ~ \.php$ {
  88. fastcgi_pass localhost:1026;
  89. fastcgi_index index.php;
  90. fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  91. include fastcgi_params;
  92. }
  93.  
  94. # deny access to .htaccess files, if Apache's document root
  95. # concurs with nginx's one
  96. #
  97. #location ~ /\.ht {
  98. # deny all;
  99. #}
  100. }
  101.  
  102.  
  103. # another virtual host using mix of IP-, name-, and port-based configuration
  104. #
  105. #server {
  106. # listen 8000;
  107. # listen somename:8080;
  108. # server_name somename alias another.alias;
  109.  
  110. # location / {
  111. # root html;
  112. # index index.html index.htm;
  113. # }
  114. #}
  115.  
  116.  
  117. # HTTPS server
  118. #
  119. #server {
  120. # listen 443;
  121. # server_name localhost;
  122.  
  123. # ssl on;
  124. # ssl_certificate cert.pem;
  125. # ssl_certificate_key cert.key;
  126.  
  127. # ssl_session_timeout 5m;
  128.  
  129. # ssl_protocols SSLv2 SSLv3 TLSv1;
  130. # ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
  131. # ssl_prefer_server_ciphers on;
  132.  
  133. # location / {
  134. # root html;
  135. # index index.html index.htm;
  136. # }
  137. #}
  138.  
  139. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement