Skip to content

Commit c085711

Browse files
authored
Refactory and lab swaps (#29)
* lab5 minor update * lab7 & 8 swap * lab1 screenshot update * labguide update
1 parent 0245c3c commit c085711

37 files changed

+295
-265
lines changed
-6.96 KB
Loading
-57.5 KB
Loading

labs/lab4/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,4 +306,4 @@ This ends lab4.
306306

307307
---
308308

309-
Navigate to ([LabGuide](../readme.md))
309+
Navigate to ([Lab5](../lab5/readme.md) | [LabGuide](../readme.md))

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;

labs/lab5/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ This will require a new NGINX config file, for the Server and Location Blocks. F
280280
1. Time to Test!!! Go back to Visual Studio Terminal and run below commands to test if your new `proxy_pass` configuration is working as expected. Run this command several times.
281281
282282
```bash
283-
docker exec -it $NAME-nginx-plus curl -s http://cafe.example.com |grep Server
283+
curl -s http://cafe.example.com |grep Server
284284
```
285285
286286
```bash
@@ -1247,4 +1247,4 @@ With NGINX, there are several configuration options for this, but in this next l
12471247
12481248
-------------
12491249
1250-
Navigate to ([Lab6](../lab6/readme.md) | [Main Menu](../readme.md))
1250+
Navigate to ([Lab6](../lab6/readme.md) | [LabGuide](../readme.md))
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)