Skip to content

Commit b0e2272

Browse files
committed
Enable nginx_status page and run main server on port 8080
1 parent c807595 commit b0e2272

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

nginx.conf

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,19 @@ http {
2020
access_log /dev/stdout elb_log;
2121

2222
server {
23-
listen 80 proxy_protocol;
23+
listen 80;
24+
server_name localhost;
25+
26+
location /nginx_status {
27+
stub_status;
28+
access_log off;
29+
allow 127.0.0.1;
30+
deny all;
31+
}
32+
}
33+
34+
server {
35+
listen 8080 proxy_protocol;
2436
proxy_http_version 1.1;
2537
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2638
proxy_set_header X-Forwarded-Proto $scheme;

0 commit comments

Comments
 (0)