Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 5th, 2013  |  syntax: None  |  size: 1.47 KB  |  views: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. server {
  2.         listen 80;
  3.         server_name www.smak.org;
  4.         rewrite ^ http://smak.org$request_uri?;
  5. error_log /var/log/www/smak.org/nerror.log;
  6. }
  7. server {
  8.         listen 80;
  9.         server_name smak.org;
  10.         server_name_in_redirect off;
  11.         root /usr/local/www/nginx/smak.org;
  12.         index index.php index.html index.htm;
  13.         location ~* ^.+\.(ico|js|gif|jpg|jpeg|png|bmp)$ {
  14.           expires 30d;
  15.         }
  16.         location / {
  17.             try_files $uri $uri/ /index.php;
  18.         }
  19.         location ~ \.php$ {
  20.                     # fastcgi_split_path_info ^(.+\.php)(.*)$;
  21.                     fastcgi_pass   backend;
  22.                 fastcgi_param  DOCUMENT_ROOT    $document_root;
  23.                 fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  24.                 fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_script_name;
  25.  
  26.  
  27.   include fastcgi_params;
  28.   fastcgi_param  QUERY_STRING     $query_string;
  29.   fastcgi_param  REQUEST_METHOD   $request_method;
  30.   fastcgi_param  CONTENT_TYPE     $content_type;
  31.   fastcgi_param  CONTENT_LENGTH   $content_length;
  32.   fastcgi_intercept_errors        on;
  33.   fastcgi_ignore_client_abort     off;
  34.   fastcgi_connect_timeout 60;
  35.   fastcgi_send_timeout 180;
  36.   fastcgi_read_timeout 180;
  37.   fastcgi_buffer_size 128k;
  38.   fastcgi_buffers 4 256k;
  39.   fastcgi_busy_buffers_size 256k;
  40.   fastcgi_temp_file_write_size 256k;
  41.  
  42.         }
  43.         location ~ /\.ht {
  44.             deny all;
  45.         }
  46. }
clone this paste RAW Paste Data