Sha256: 7745c1b018be8ae6eda0e0ad151d26bcabc2441a3291f3a4c7efa0700728a963
Contents?: true
Size: 1.5 KB
Versions: 1
Compression:
Stored size: 1.5 KB
Contents
upstream <%= application %> { server 127.0.0.1:9000; } server { listen 80; server_name <%= domain %>; root <%= deploy_to %>/current/public; access_log <%= deploy_to %>/shared/log/<%= domain %>-access.log; error_log <%= deploy_to %>/shared/log/<%= domain %>-error.log; client_max_body_size <%= nginx_client_max_body_size %>; if (-f $document_root/system/maintenance.html){ rewrite ^(.*)$ /system/maintenance.html last; break; } location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect false; if (-f $request_filename/index.html) { rewrite (.*) $1/index.html break; } if (-f $request_filename.html) { rewrite (.*) $1.html break; } if (!-f $request_filename) { proxy_pass http://<%= application %>; break; } } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # Tuning Parameters location ~* ^.+\.(jpe?g|gif|css|png|js|ico|html|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|mov)$ { expires 60d; access_log off; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Empact-deprec-1.99.21 | lib/deprec/templates/nginx/rails_nginx_vhost.conf.erb |