inc_restrictions.erb 715 Bytes
# Generated by Chef
#
# Global restrictions configuration file.
# Designed to be included in any server {} block.
location = /favicon.ico {
    log_not_found off;
    access_log off;
}

location = /robots.txt {
    allow all;
<% unless @log_robots -%>
    access_log off;
    log_not_found off;
<% end -%>
}

# Deny all attempts to access hidden files and folders
location ~ (^|/)\. {
    deny all;
<% unless @log_hidden -%>
    access_log off;
    log_not_found off;
<% end -%>
}

# Directives to send expires headers and (probably?) turn off 404 error logging.
location ~* ^.+\.(<%= @static_types.join('|') %>)$ {
    expires max;
<% unless @log_static -%>
    access_log off;
    log_not_found off;
<% end -%>
}