Skip to content

Instantly share code, notes, and snippets.

@skyler
Created August 16, 2012 01:58
Show Gist options
  • Save skyler/3365585 to your computer and use it in GitHub Desktop.
Save skyler/3365585 to your computer and use it in GitHub Desktop.
Coefficient nginx config
server {
server_name *.coefficientrev.com *.coefficientrevenue.com;
rewrite ^/(.*) http://www.coefficientinc.com permanent;
}
server {
# Unneeded and defaults to 80?
#listen 80;
server_name www.coefficientinc.com coefficientinc.com;
root /var/www/coefficient/static; #<--- this is the 403 issue!
try_files $uri @uwsgi;
location @uwsgi {
include uwsgi_params;
uwsgi_pass 127.0.0.1:3031;
}
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment