[nextcloud-web] nginx: Configure useful log_format
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nextcloud-web] nginx: Configure useful log_format
- Date: Tue, 22 Jun 2021 12:56:21 +0000 (UTC)
commit ec218b033226d55e65d43d7854d9c5a005e1e1b1
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Tue Jun 22 14:56:16 2021 +0200
nginx: Configure useful log_format
nginx/nginx.conf | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index e5dfebf..554ce9f 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -18,6 +18,11 @@ http {
types_hash_max_size 2048;
server_tokens off;
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
+ '$status $body_bytes_sent "$http_referer" '
+ '"$http_user_agent" "$http_x_forwarded_for"';
+ access_log /dev/stdout main;
+
upstream php-handler {
server localhost:9000;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]