Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 21st, 2010 | Syntax: None | Size: 1.17 KB | Hits: 55 | Expires: Never
Copy text to clipboard
  1. server {
  2.   # Replace this port with the right one for your requirements
  3.   listen       80;  #could also be 1.2.3.4:80
  4.  
  5.   # Multiple hostnames separated by spaces.  Replace these as well.
  6.   server_name   beta.mmoxeno.com;
  7.   root /var/www/public_html/beta.mmoxeno.com;
  8.   access_log    logs/beta.mmoxeno.com.access.log;
  9.   error_log     logs/beta.mmoxeno.com.error.log;
  10.  
  11.   location / {
  12.     root        /var/www/public_html/beta.mmoxeno.com;
  13.     index       index.html index.php;
  14.   }
  15.  
  16.   # serve static files directly
  17.   location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html)$ {
  18.     access_log  off;
  19.     expires     30d;
  20.   }
  21.  
  22.   location ~ .php$ {
  23.     # By all means use a different server for the fcgi processes if you need to
  24.     fastcgi_pass   127.0.0.1:9000;
  25.     fastcgi_index  index.php;
  26.     fastcgi_param  SCRIPT_FILENAME  /var/www/public_html/beta.mmoxeno.com/$fastcgi_script_name;
  27.     fastcgi_param  QUERY_STRING     $query_string;
  28.     fastcgi_param  REQUEST_METHOD   $request_method;
  29.     fastcgi_param  CONTENT_TYPE     $content_type;
  30.     fastcgi_param  CONTENT_LENGTH   $content_length;
  31.     fastcgi_intercept_errors on;
  32.   }
  33.  
  34.   location ~ /\.ht {
  35.     deny  all;
  36.   }
  37. }