https://github.com/dchest/cgirunner
Simple CGI runner in Go (aka "make nginx run CGIs")
https://github.com/dchest/cgirunner
Last synced: over 1 year ago
JSON representation
Simple CGI runner in Go (aka "make nginx run CGIs")
- Host: GitHub
- URL: https://github.com/dchest/cgirunner
- Owner: dchest
- License: bsd-2-clause
- Created: 2013-09-14T13:14:23.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-05-26T08:59:29.000Z (about 11 years ago)
- Last Synced: 2025-01-24T09:42:56.753Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 129 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
Simple CGI runner in Go.
Give it a directory full of CGIs and it will serve them from the given address.
EXAMPLE
$ cgirunner -dir=/srv/cgi-bin -addr=localhost:8111 -root=/hello
If in /srv/cgi-bin there's an executable called "mama.cgi", it will be
available at http://localhost:8181/hello/mama.cgi.
NOTE
The program loads a list of CGIs during startup, so to serve new CGIs,
it must be restarted.
IMPORTANT
Doesn't clean environment variables. Depending on your CGI scripts,
this may be a security risk. Use https://github.com/gnosek/fcgiwrap.