6
listen 80 default_server;
11
root <%= node[:rack][:root] %>/current/public;
13
access_log <%= node[:rack][:root] %>/current/log/nginx.access.log;
14
error_log <%= node[:rack][:root] %>/current/log/nginx.error.log;
16
# this rewrites all the requests to the maintenance.html
17
# page if it exists in the doc root. This is for capistrano's
19
if (-f $document_root/maintenance.html) {
20
rewrite ^(.*)$ /maintenance.html last;
25
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
26
proxy_set_header Host $http_host;
28
# If the file exists as a static file serve it directly without
29
# running all the other rewite tests on it
30
if (-f $request_filename) {
34
if (!-f $request_filename) {
35
proxy_pass http://rack;
b'\\ No newline at end of file'