|
|
@ -37,9 +37,10 @@ http { |
|
|
|
|
|
|
|
|
|
|
|
server { |
|
|
|
server { |
|
|
|
listen 127.0.0.1:8001 proxy_protocol; |
|
|
|
listen 127.0.0.1:8001 proxy_protocol; |
|
|
|
server_name yourserver_8001.com; |
|
|
|
listen 127.0.0.1:8002 http2 proxy_protocol; |
|
|
|
|
|
|
|
server_name yourserver.com; |
|
|
|
|
|
|
|
|
|
|
|
set_real_ip_from 192.168.1.0/24; |
|
|
|
set_real_ip_from 127.0.0.1; |
|
|
|
|
|
|
|
|
|
|
|
charset utf-8; |
|
|
|
charset utf-8; |
|
|
|
|
|
|
|
|
|
|
@ -53,21 +54,4 @@ http { |
|
|
|
|
|
|
|
|
|
|
|
error_page 500 502 503 504 /50x.html; |
|
|
|
error_page 500 502 503 504 /50x.html; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
server { |
|
|
|
|
|
|
|
listen 127.0.0.1:8002 http2 proxy_protocol; |
|
|
|
|
|
|
|
server_name yourserver_8002.com; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
charset utf-8; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
access_log logs/yourserver_8002.access.log proxy; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location / { |
|
|
|
|
|
|
|
root /var/www/html; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
error_page 404 /404.html; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
error_page 500 502 503 504 /50x.html; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|