Working on logging

This commit is contained in:
Ric Harvey
2015-07-10 11:17:07 +01:00
parent 179849b556
commit 2803363c8d
2 changed files with 7 additions and 3 deletions

View File

@@ -11,6 +11,11 @@ server {
# Disable sendfile as per https://docs.vagrantup.com/v2/synced-folders/virtualbox.html
sendfile off;
# Add stdout logging
error_log /dev/stdout info;
access_log /dev/stdout;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to index.html
@@ -39,14 +44,12 @@ server {
}
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
log_not_found off;
expires 5d;
}
# deny access to . files, for security
#
location ~ /\. {
access_log off;
log_not_found off;
deny all;
}