项目作者: mback2k

项目描述 :
A simple CGI server to host legacy CGI scripts.
高级语言: Go
项目地址: git://github.com/mback2k/simple-cgi-server.git
创建时间: 2019-02-24T16:57:19Z
项目社区:https://github.com/mback2k/simple-cgi-server

开源协议:GNU General Public License v3.0

下载


simple-cgi-server

This Go program is a simple CGI server to host legacy CGI scripts.
This server is intended to be running behind a reverse proxy or
loadbalancer, like traefik.

Build Status
GoDoc
Go Report Card

Dependencies

The following awesome Go libraries are dependencies:

Installation

You basically have two options to install this Go program package:

  1. If you have Go installed and configured on your PATH, just do the following go get inside your GOPATH to get the latest version:
  1. go get -u github.com/mback2k/simple-cgi-server
  1. If you do not have Go installed and just want to use a released binary,
    then you can just go ahead and download a pre-compiled Linux amd64 binary from the Github releases.

Finally put the simple-cgi-server binary onto your PATH and make sure it is executable.

Configuration

The following YAML file is an example configuration to serve Python scripts:

  1. Address: "localhost:8080"
  2. HandlerList:
  3. - FileExt: .py
  4. Handler: python
  5. Logging:
  6. Level: info

Save this file in one of the following locations and run ./simple-cgi-server:

  • /etc/simple-cgi-server/simple-cgi-server.yaml
  • $HOME/.simple-cgi-server.yaml
  • $PWD/simple-cgi-server.yaml

License

Copyright (C) 2019 Marc Hoersken info@marc-hoersken.de

This software is licensed as described in the file LICENSE, which
you should have received as part of this software distribution.

All trademarks are the property of their respective owners.