Skip to content

Commit 48764aa

Browse files
committed
lab3 final edits
1 parent 45d80bc commit 48764aa

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed
-2.97 KB
Loading
17.9 KB
Loading
-426 Bytes
Loading

labs/lab3/readme.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,20 +169,28 @@ Fix the Expired Certificate! If you want to create a new certificate, say with
169169

170170
1. Copy the 91.* files to the appropriate directory, in this workshop, that would be `lab2/nginx-oss/etc/ssl/nginx`.
171171

172-
1. Edit the `tls-cars.example.com.conf` file, changing the names of the crt/key from `1-day.crt and 1-day.key` to `90-day.crt and 90-day.key`; Lines #13-14.
172+
1. Edit the `tls-cars.example.com.conf` file that can be found in `lab2/nginx-oss/etc/nginx/conf.d/` file path. Change the names of the crt/key from `cars.crt and cars.key` to `90-day.crt and 90-day.key`; Lines #13-14.
173173

174174
```nginx
175175
...
176176
# Update the following 2 lines for NGINX cert and key directives and file locations
177177
178-
ssl_certificate /etc/ssl/nginx/1-day.crt;
179-
ssl_certificate_key /etc/ssl/nginx/1-day.key;
178+
ssl_certificate /etc/ssl/nginx/cars.crt;
179+
ssl_certificate_key /etc/ssl/nginx/cars.key;
180180
181181
...
182182
183183
```
184184

185-
1. You will have to `docker exec login` to each container, and reload Nginx ( `nginx -s reload` ) for Nginx to pick up the configuration changes.
185+
1. Once you have made this file edits, you would need to reload nginx within all the NGINX OSS containers to incorporate these configuration changes. To do so run below command in your terminal
186+
187+
```bash
188+
docker exec -it basics-oss1 nginx -s reload
189+
docker exec -it basics-oss2 nginx -s reload
190+
docker exec -it basics-oss3 nginx -s reload
191+
```
192+
193+
The above set of commands would reload nginx in all the three NGINX OSS containers: basics-oss1, basics-oss2 and basics-oss3.
186194

187195
<br/>
188196

0 commit comments

Comments
 (0)