From 588347945b28b54988496ac8807d47757e23daed Mon Sep 17 00:00:00 2001 From: Heng Gai Deng Date: Mon, 1 Jul 2024 14:09:40 -0700 Subject: [PATCH] hdeng nginx config test --- .../deployments/with-diagnostic-setting-logging/main.tf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/terraform/deployments/with-diagnostic-setting-logging/main.tf b/terraform/deployments/with-diagnostic-setting-logging/main.tf index d01880f..2418242 100644 --- a/terraform/deployments/with-diagnostic-setting-logging/main.tf +++ b/terraform/deployments/with-diagnostic-setting-logging/main.tf @@ -63,13 +63,14 @@ events { worker_connections 4000; } -error_log /var/log/nginx/error.log error; - http { + log_format access_format '$remote_addr - "$remote_user" [$time_local] "$request" $status'; + error_log /var/log/nginx/error.log error; + access_log /var/log/nginx/access.log access_format; server { listen 80 default_server; server_name localhost; - location / { + location = / { return 200 'Hello World'; } }