Skip to content

Instantly share code, notes, and snippets.

@tibra
Created November 11, 2013 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tibra/7411022 to your computer and use it in GitHub Desktop.
Save tibra/7411022 to your computer and use it in GitHub Desktop.
# @Sebastian: service nginx start|stop|restart|reload
upstream report_production {
server unix:/home/report_production/application/shared/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {
listen 8008;
server_name report.projektserver3.as.wiwi.uni-goettingen.de;
client_max_body_size 100M;
root /home/report_production/application/current/public;
access_log /home/report_production/application/shared/log/nginx-app.access.log main;
error_log /home/report_production/application/shared/log/nginx-app.error.log info;
# This is a ruby application, deny other common types.
location ~ \.(php|asp|aspx|jsp|cfm|dll)$ {
deny all;
break;
}
location / {
# @Sebastian: hier musst du mal schauen ob die Datei dort liegt oder im "conf" Verzeichnis eine
# Ebene weiter unten und ggf. anpassen
include /etc/nginx/proxy.conf;
proxy_set_header Host $http_host;
if (!-f $request_filename) {
proxy_pass http://report_production;
break;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment