summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhyang <hyang@hyang.xyz>2023-09-10 16:08:58 -0700
committerhyang <hyang@hyang.xyz>2023-09-10 16:08:58 -0700
commitc746af0eca500224c03849c0408c9ceff2542b31 (patch)
tree3cd7d34eced9608a03427a002c28e6f46f95aa2d
parent5e5193fddb12518d69f939964fc508c0face9127 (diff)
Escape double quotes
-rwxr-xr-xnginx-entrypoint.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/nginx-entrypoint.sh b/nginx-entrypoint.sh
index 8d19f8e..442d018 100755
--- a/nginx-entrypoint.sh
+++ b/nginx-entrypoint.sh
@@ -60,9 +60,9 @@ http {
gzip_vary on;
# Specifies the main log format.
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for"';
+ log_format main '$remote_addr - $remote_user [$time_local] \"$request\" '
+ '$status $body_bytes_sent \"$http_referer\" '
+ '\"$http_user_agent\" \"$http_x_forwarded_for\"';
# Sets the path, format, and configuration for a buffered log write.
access_log /var/log/nginx/access.log main;