Skip to content

Instantly share code, notes, and snippets.

@coderforhire
Created May 9, 2012 15:41
Show Gist options
  • Save coderforhire/2645689 to your computer and use it in GitHub Desktop.
Save coderforhire/2645689 to your computer and use it in GitHub Desktop.
server
{
listen 80;
server_name xml.newground.com;
access_log /var/log/nginx/xml.newground.com.access.log;
error_log /var/log/nginx/xml.newground.com.error.log;
root /var/www/xml/current/public;
index index.php index.html index.htm;
passenger_enabled on;
passenger_root /home/afresta/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11;
passenger_ruby /home/afresta/.rvm/wrappers/ruby-1.9.3-p0/ruby;
# use fastcgi for all php files
location ~ \.php$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment