Minimal nginx + FastCGI stack that spins up two demo sites (BridgeIT Consulting on :8080 and StellarHost on :8081). Use it as a reference while building your webserv.
- Docker Engine with the Compose plugin (or Docker Desktop)
make
git clone <repo>
cd nginx_prototype
make up-build # build image + start containersThen open:
- http://localhost:8080 (consulting site)
- http://localhost:8081 (hosting site)
Add 127.0.0.1 consulting.localhost hosting.localhost to /etc/hosts if your OS does not auto-resolve *.localhost.
To stop everything run make down. For a rebuild from scratch use make clean && make up-build.
| Target | What it does |
|---|---|
make up-build |
Rebuild the image and start the stack |
make up |
Start the existing containers |
make down |
Stop the containers |
make logs |
Follow container logs |
make clean |
Remove containers + volumes |
| Scenario | Command |
|---|---|
| Static GET | curl http://localhost:8080/ |
| CGI echo | curl http://localhost:8080/cgi-bin/echo.py |
| Upload form | curl -F "username=foo" -F "avatar=@file" http://localhost:8080/cgi-bin/upload.py |
Uploads land on the host under nginx/html/consultingco/uploads/.