Skip to content

Instantly share code, notes, and snippets.

@cmaxw
Created July 31, 2013 16:37
Show Gist options
  • Save cmaxw/6123716 to your computer and use it in GitHub Desktop.
Save cmaxw/6123716 to your computer and use it in GitHub Desktop.
nginx config (that doesn't work)
server {
server_name rubyrogues.com www.rubyrogues.com rubyrogues.bluebox-placeholder.com;
access_log /var/log/nginx/rubyrogues.com.access.log;
error_log /var/log/nginx/rubyrogues.com.error.log;
root /var/www/rubyrogues;
passenger_enabled on;
passenger_base_uri /parley;
rails_env production;
location / {
index index.html index.htm index.php;
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
include /opt/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/rubyrogues$fastcgi_script_name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment