Don't log certain paths
This commit is contained in:
parent
a1e99c347d
commit
59720a3fb5
1 changed files with 8 additions and 10 deletions
18
nginx.conf
18
nginx.conf
|
@ -14,11 +14,9 @@ http {
|
|||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
access_log /dev/stdout;
|
||||
access_log /dev/stdout;
|
||||
access_log /var/log/nginx/access.log;
|
||||
|
||||
set_real_ip_from 0.0.0.0/0;
|
||||
real_ip_header X-Forwarded-For;
|
||||
|
||||
sendfile on;
|
||||
|
||||
|
@ -29,18 +27,18 @@ http {
|
|||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
set_real_ip_from 0.0.0.0/0;
|
||||
real_ip_header X-Forwarded-For;
|
||||
|
||||
location ~* ^\/(_matrix|stats|js|scss|img|css|fonts|webfonts)+? {
|
||||
access_log off;
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue