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

default.conf

By: a guest on Mar 4th, 2013  |  syntax: None  |  size: 0.78 KB  |  views: 6  |  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. #
  2. # My server
  3. #
  4. server {
  5.     listen       80;
  6.     server_name localhost;
  7.  
  8.    
  9.     location / {
  10.         root   /usr/share/nginx/html;
  11.         index index.php  index.html index.htm;
  12.     }
  13.  
  14.     error_page  404              /404.html;
  15.     location = /404.html {
  16.         root   /usr/share/nginx/html;
  17.     }
  18.  
  19.     error_page   500 502 503 504  /50x.html;
  20.     location = /50x.html {
  21.         root   /usr/share/nginx/html;
  22.     }
  23.  
  24.     # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  25.     #
  26.     location ~ \.php$ {
  27.         root           /usr/share/nginx/html;
  28.         fastcgi_pass   127.0.0.1:9000;
  29.         fastcgi_index  index.php;
  30.         fastcgi_param  SCRIPT_FILENAME   $document_root$fastcgi_script_name;
  31.         include        fastcgi_params;
  32.     }
  33. }
clone this paste RAW Paste Data