Skip to content

Nginx as a zero-configuration command-line server

Notifications You must be signed in to change notification settings

slezica/zenginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

zenginx

zenginx is a zero-configuration nginx wrapper to run command-line servers.

By default, it will work as a static file server on port 8080, and serve the current working directory:

$ zenginx
Listening on localhost:8080
Starting file server on /home/me/

You can specify the port to serve on and the path to mount using --port and --dir:

$ zenginx --port 3000 --dir www
Listening on localhost:3000
Starting file server on /home/me/www

You can also use zenginx to set up a proxy:

$ zenginx --port 3000 --proxy http://google.com
Listening on localhost:3000
Starting HTTP proxy to http://google.com

See zenginx --help for more info.

Installation

Make sure you have nginx in your path, and just copy the bin/zenginx file from this repository.

About

Nginx as a zero-configuration command-line server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages