Skip to content

WSSMRKS/basic_nginx_webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Two-Site NGINX Prototype

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.


Requirements

  • Docker Engine with the Compose plugin (or Docker Desktop)
  • make

Run it

git clone <repo>
cd nginx_prototype
make up-build        # build image + start containers

Then open:

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.


Useful targets

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

Quick sanity checks

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/.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors