src.nth.io/

summaryrefslogtreecommitdiff
path: root/nginx/files/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'nginx/files/nginx.conf')
-rw-r--r--nginx/files/nginx.conf7
1 files changed, 6 insertions, 1 deletions
diff --git a/nginx/files/nginx.conf b/nginx/files/nginx.conf
index 2f7cb0a..215d8fe 100644
--- a/nginx/files/nginx.conf
+++ b/nginx/files/nginx.conf
@@ -38,7 +38,12 @@ http {
# Logging Settings
##
- access_log /var/log/nginx/access.log;
+ map $uri $loggable {
+ default 1;
+ ~*\.(css|js|ico|png|jpg|jpeg|gif|svg|woff|woff2|ttf|eot|webp|map)$ 0;
+ }
+
+ access_log /var/log/nginx/access.log combined if=$loggable;
error_log /var/log/nginx/error.log;
##