Skip to content

Http Server written in Golang that make simple redirection. it support ssl, vhosts, simple serving files, http redirection

License

Notifications You must be signed in to change notification settings

llgcode/httpredirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

httpredirect

Http Server written in Golang that make simple redirection.

it support ssl, vhosts, simple serving files, http redirection

Installation

Download the latest executable for your distribution.

or from source, first install golang and then execute this command

go install github.com/llgcode/httpredirect

Run

$ httpredirect.exe --help
Usage of httpredirect.exe:
  -log="": Define log file
  -router="router.json": Define router file
  -sslCert="": Path to certificate file
  -sslKey="": Path to key file

router.json

{
 "Port": 80,
 "Redirections": [
   {
       "Path": "songbook.llgmusic.net/",
       "URL": "http://127.0.0.1:8081/"
   }, 
   {
       "Path": "www.llgmusic.net/",
       "URL": "http://127.0.0.1:8082/"
   }, 
   {
       "Path": "llgmusic.net/",
       "URL": "http://127.0.0.1:8082/"
   },
   {
       "Path": "/mywebapp/",
       "URL": "/opt/mywebapp"
   }
]
}

About

Http Server written in Golang that make simple redirection. it support ssl, vhosts, simple serving files, http redirection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages