包含HTTP Forward的小HTTP Server,forwardserver,以前自己调试js使用的小


以前自己调试js使用的小工具,解决开发过程中的跨域问题。

支持GET POST Forward,并且包含一个静态的HTTP Server,可配置。

Switcher 部分是用一个Proxy改的,时间较旧忘记出处了不好意思

前台开发居家必备呀。

-------配置部分--------host="127.0.0.1"  # the http server's bind ipswitcher_port=80 # http switcher server's portbuflen=8192 # http switcher server's buffer length# http switcher server's switch table# each rule contain 2 parts:#    urlpath's prefix#    forwarding domain## notice:#   sequence hit#   forwarding will remove the perfix#   no rule hit will raise 404mapper=[  ['/other/',"192.168.1.123:80"],  ["/","127.0.0.1:8080"]]web_port=8080  # static file server's portwebdir="/var/www/"  # static file server's document root#该片段来自于http://byrx.net

评论关闭