Skip to content

Commit 3e4a149

Browse files
committed
Fix nginx config
1 parent 7384d35 commit 3e4a149

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nginx.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ http {
1414
default_type application/octet-stream;
1515

1616
log_format elb_log '$proxy_protocol_addr - $remote_user [$time_local] '
17-
'"$request" $status $body_bytes_sent "$http_referer" '
18-
'"$http_user_agent"';
17+
'$request $status $body_bytes_sent $http_referer '
18+
'$http_user_agent';
1919

2020
access_log /dev/stdout elb_log;
2121

2222
server {
23-
listen 80;
23+
listen 80 proxy_protocol;
2424
proxy_http_version 1.1;
2525
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2626
proxy_set_header X-Forwarded-Proto $scheme;

0 commit comments

Comments
 (0)