Sha256: 88b1d24278e4371ec300692cb7436ab4bd2958953a11b7792e5e62d019c914ce

Contents?: true

Size: 681 Bytes

Versions: 22

Compression:

Stored size: 681 Bytes

Contents

<%
  @path = "/etc/nginx/rubber/application.conf"
%>

server_name  <%= [ rubber_env.domain, rubber_env.web_aliases ].flatten.compact.join(" ") %>;
passenger_enabled on;

passenger_min_instances 1;

root <%= Rubber.root + "/public" %>;

# this rewrites all the requests to the maintenance.html
# page if it exists in the doc root. This is for capistrano's
# disable web task
if (-f $document_root/system/maintenance.html)
{
  rewrite  ^(.*)$  /system/maintenance.html last;
  break;
}

error_page   500 502 503 504  /500.html;
location = /500.html
{
  root <%= Rubber.root + "/public" %>;
}
error_page 404  /404.html;
location = /404.html
{
  root <%= Rubber.root + "/public" %>;
}

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rubber-2.1.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.8 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.7 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.6 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.5 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.4 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.3 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.2 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.1 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.0.pre12 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.0.pre11 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.0.pre10 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.0.pre9 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.0.pre8 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.0.pre7 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.0.pre6 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.0.pre5 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.0.pre4 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.0.0.pre3 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf