Untitled
By: a guest | Mar 21st, 2010 | Syntax:
None | Size: 1.17 KB | Hits: 55 | Expires: Never
server {
# Replace this port with the right one for your requirements
listen 80; #could also be 1.2.3.4:80
# Multiple hostnames separated by spaces. Replace these as well.
server_name beta.mmoxeno.com;
root /var/www/public_html/beta.mmoxeno.com;
access_log logs/beta.mmoxeno.com.access.log;
error_log logs/beta.mmoxeno.com.error.log;
location / {
root /var/www/public_html/beta.mmoxeno.com;
index index.html index.php;
}
# serve static files directly
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html)$ {
access_log off;
expires 30d;
}
location ~ .php$ {
# By all means use a different server for the fcgi processes if you need to
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/public_html/beta.mmoxeno.com/$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_intercept_errors on;
}
location ~ /\.ht {
deny all;
}
}