|
@@ -1,13 +1,13 @@
|
|
# nginx + passenger application vhost
|
|
# nginx + passenger application vhost
|
|
#
|
|
#
|
|
-# Generated by Chef for <%= @node[:fqdn] %>
|
|
|
|
|
|
+# Generated by Chef for <%= node[:fqdn] %>
|
|
# Local modifications will be overwritten.
|
|
# Local modifications will be overwritten.
|
|
#
|
|
#
|
|
server {
|
|
server {
|
|
listen 80;
|
|
listen 80;
|
|
server_name <%= @server_name %><% @server_aliases.each do |a| %><%= " #{a}" %> <% end %>;
|
|
server_name <%= @server_name %><% @server_aliases.each do |a| %><%= " #{a}" %> <% end %>;
|
|
root <%= @docroot %>;
|
|
root <%= @docroot %>;
|
|
- error_log <%= @node[:nginx][:log_dir] %>/<%= @app %>-error.log;
|
|
|
|
- access_log <%= @node[:nginx][:log_dir] %>/<%= @app %>-access.log;
|
|
|
|
|
|
+ error_log <%= node[:nginx][:log_dir] %>/<%= @app %>-error.log;
|
|
|
|
+ access_log <%= node[:nginx][:log_dir] %>/<%= @app %>-access.log;
|
|
passenger_enabled on;
|
|
passenger_enabled on;
|
|
}
|
|
}
|