httpredirect:用 Golang 编写的 Http Server 进行简单的重定向。 它支持 ssl
http重定向
用 Golang 编写的 Http Server 进行简单的重定向。
它支持 ssl、vhosts、简单的服务文件、http 重定向
安装
为您的发行版下载。
或者从源码,先安装 ,然后执行这个命令
go install github.com/llgcode/httpredirect
跑步
$ 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
路由器文件
{
" Port " : 80 ,
" Redirections " : [