100% satisfaction guarantee Immediately available after payment Read online or as PDF No strings attached 4.6 TrustPilot
logo-home
Summary

Summary Simple web server with Nginx.pdf

Rating
-
Sold
-
Pages
5
Uploaded on
26-11-2025
Written in
2025/2026

Simple web server with Nginx.pdf

Institution
Course

Content preview

Oefening 4 – Eenvoudige
Webserver met Nginx
(Docker)
In deze oefening leer je hoe je:


de officiële Nginx-webserver draait in een container


een eigen HTML-pagina serveert


begrijpt wat volumes doen


leert wat er met data gebeurt wanneer containers worden verwijderd




Stap 1 — Trek de officiële
Nginx image
Download het Nginx-image van Docker Hub:


docker pull nginx


Dit haalt de laatste versie binnen:


Using default tag: latest latest: Pull complete




Stap 2 — Start een Nginx-
container op poort 8080
Start de webserver:


docker run -d -p 8080:80 nginx


Betekenis:

, -d → run in background (detached mode)


-p 8080:80 → map hostport 8080 naar containerpoort 80
(Nginx luistert standaard op poort 80)


Check dat hij draait:


docker ps




Stap 3 — Surf naar de
website
Open je browser en ga naar:


http://localhost:8080 (http://localhost:8080)


Je ziet nu de standaard Nginx welkomstpagina:




"Welcome to nginx!"




Stap 4 — Maak je eigen
index.html
Maak in je huidige directory een bestand:


nano index.html


Plaats deze inhoud:


<h1>Welkom bij mijn eerste container!</h1>


Opslaan:
CTRL + O → ENTER → CTRL + X

Written for

Course

Document information

Uploaded on
November 26, 2025
Number of pages
5
Written in
2025/2026
Type
SUMMARY

Subjects

$12.71
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Read online or as PDF
No strings attached

Get to know the seller
Seller avatar
lorenzomeli

Also available in package deal

Get to know the seller

Seller avatar
lorenzomeli Hogeschool Gent
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 months
Number of followers
0
Documents
29
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions