public
Rubygem
Fork of defunkt/nginx_config_generator
Description: Generates nginx config files from YAML.
Homepage: http://errtheblog.com/posts/52-nginx-config-like-whoa
Clone URL: git://github.com/mattly/nginx_config_generator.git
dont specify 404 by default
mattly (author)
Sat Jul 05 02:06:23 -0700 2008
commit  2dce97ca642703007c572079f2a0ab919592268e
tree    fcb0081ef3aa8ef9e94a2ae509866d394b49e396
parent  a3cd35e808d6eb897973680c9110f0663289a58d
...
186
187
188
189
 
 
 
190
191
192
...
186
187
188
 
189
190
191
192
193
194
0
@@ -186,7 +186,9 @@ http {
0
       <% end %>
0
     }
0
     
0
- error_page 404 <%= site['404_not_found'] || '/404.html' %>;
0
+ <% if site['404_not_found'] %>
0
+ error_page 404 <%= site['404_not_found'] %>;
0
+ <% end %>
0
     
0
     error_page 500 502 503 504 <%= site['50x_error_page'] || '/50x.html' %>;
0
     location = /50x.html {

Comments

    No one has commented yet.