Skip to content

Commit e25beba

Browse files
committed
lab5 minor update
1 parent 6586675 commit e25beba

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

labs/lab5/final/keepalive.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Nginx Basics keepalive.conf
2+
# Nov 2024 - Chris Akker, Shouvik Dutta, Adam Currier
3+
#
4+
# Default is HTTP/1.0 to upstreams, HTTP keepalives needed for HTTP/1.1
5+
proxy_http_version 1.1;
6+
7+
# Set the Connection header to empty
8+
proxy_set_header Connection "";
9+
10+
# Host request header field, or the server name matching a request
11+
proxy_set_header Host $host;

labs/lab5/final/proxy_headers.conf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Nginx Basics proxy_headers.conf
2+
# Nov 2024 - Chris Akker, Shouvik Dutta, Adam Currier
3+
#
4+
## Set Headers to the proxied servers ##
5+
6+
# client address in binary format
7+
proxy_set_header X-Real-IP $remote_addr;
8+
9+
# X-Forwarded-For client request header
10+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
11+
12+
# request scheme, “http” or “https”
13+
proxy_set_header X-Forwarded-Proto $scheme;

0 commit comments

Comments
 (0)