This repo is to exercise nginx and know it better in simple version.
I created some branches and in each branch you see a new folder with the name of the branch.
- Hello World
- Static Files
- Location Route
- Redirect Route
- Worker
- Cache
- Gzip
- Proxy
- Load Balance
- Rate Limit
- React Nginx
With docker commands you can do it: You should have docker up in your system, then run this:
cd <name of project>
docker build -t nginx-hello-world:1.0 .
after you can run it
docker run -d -p 80:80 -p 8080:8080 nginx-hello-world:1.0
then check your localhost on the port. easy peasy.
For Load balance example see its doc