-
-
Save podolinek/e91ad6fb3f31397634a844006a6aa761 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error_log syslog:server=unix:/var/log/nginx.sock; | |
http { | |
log_format verbose '$remote_addr - $remote_user $host "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'; | |
map $status $loggable { | |
~^[2] 0; | |
default 1; | |
} | |
map $scheme $server_https { | |
default off; | |
https on; | |
} | |
access_log syslog:server=unix:/var/log/nginx.sock verbose if=$loggable; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$AddUnixListenSocket /var/log/nginx.sock | |
# access log | |
$InputFileName /var/log/nginx/access.log | |
$InputFileTag nginx: | |
$InputFileStateFile stat-nginx-access | |
$InputFileSeverity notice | |
$InputFileFacility local6 | |
$InputFilePollInterval 1 | |
$InputRunFileMonitor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment