diff options
author | hyang <hyang@hyang.xyz> | 2023-09-10 16:08:58 -0700 |
---|---|---|
committer | hyang <hyang@hyang.xyz> | 2023-09-10 16:08:58 -0700 |
commit | c746af0eca500224c03849c0408c9ceff2542b31 (patch) | |
tree | 3cd7d34eced9608a03427a002c28e6f46f95aa2d | |
parent | 5e5193fddb12518d69f939964fc508c0face9127 (diff) |
Escape double quotes
-rwxr-xr-x | nginx-entrypoint.sh | 6 |
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; |