public
Description: Magic configuration for your nginx, mongrels and god!
Homepage: http://archangel.rubyforge.org/
Clone URL: git://github.com/halorgium/archangel.git
scrooloose (author)
Thu Jun 05 17:00:03 -0700 2008
halorgium (committer)
Wed Jan 28 03:25:31 -0800 2009
commit  10287747dc0f373d245c8b98ca6bd285f4cb0f19
tree    f07fbba77259a909941276c5089126a7d72bdb83
parent  f842d1238152f71bc7c55af6cc6223350d4dec3b
archangel / views / nginx / simple.erb
100644 29 lines (19 sloc) 0.499 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
server {
  listen <%= site.port %>;
 
  client_max_body_size 50M;
 
  server_name <%= site.hostnames.join(" ") %>;
 
  root <%= site.root_path %>;
 
  access_log <%= site.access_log %> main;
 
  error_page 500 502 503 504 /50x.html;
  location = /50x.html {
    root <%= site.root_path %>;
  }
}
 
<% if site.aliases.any? %>
server {
  listen <%= site.port %>;
 
  client_max_body_size 50M;
 
  server_name <%= site.aliases.join(" ") %>;
  
  rewrite ^/(.*)$ <%= site.main_url %>/$1 permanent;
}
<% end %>