Created
November 11, 2013 10:23
-
-
Save tibra/7411022 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @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