包含HTTP Forward的小HTTP Server,forwardserver,以前自己调试js使用的小
包含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
相关内容
- urllib的简单运用--访问网站,urllib运用--,urllib的简单运
- 删除SVN目录和.o文件,svn目录.o,title = 'thi
- 输出100以内的素数,输出100素数,for i in ran
- 坑爹的 Sleep Sort,坑爹sleepsort,睡眠排序法:待排序队列
- 用Python实现二分查找,Python实现二分查找,#!/usr/bin/e
- python 3.3 模拟登陆百度,python3.3,#-*-coding:u
- 基于正向最大匹配法的分词处理程序,Python实现,正向
- 使用python生成固定长度的随机字符串,python长度,from
- python多进程分块读取文件,python进程读取,读取超大的文
- 自用整理修改过的java文件的包,自用整理修改过java,
评论关闭