Commits

Éric Veiras Galisson  committed 6b04b4e

nginx::site::proxy root_dir is now optional

  • Participants
  • Parent commits 435f11f

Comments (0)

Files changed (2)

File nginx/README

             the server is an ip (w.x.y.z) or a unix socket (unix:/path/to/socket) 
             with eventual options (like fail_timeout...)
 
-        root_dir (mandatory):
+        root_dir (optional):
             the root directory
 
         server_aliases (optional):

File nginx/templates/proxy.erb

     access_log          /var/log/nginx/<%= server_name %>.access.log;
     error_log           /var/log/nginx/<%= server_name %>.error.log;
 
+    <% if root_dir != '' %>
     root                <%= root_dir %>;
+    <% end %>
 
     <% location_blocks.each_pair do |url, content| %>
     location <%= url %> {