继续 jquery :
var start_http_server3={'action':'new_http_server','ip':'','port':'1010'}; // 开启一个新的 http 服务器,监听在端口 1010 上
var reg_url={'action':'reg_url','type':'file_root','url':'/*','host':'*:1010','go':'/root'};
url_post_data(url,JSON.stringify(start_http_server3));
url_post_data(url,JSON.stringify(reg_url));
继续 jquery :
var start_http_server4={'action':'new_https_server','ip':'','port':'1011','cert_file':'opener.pem'}; // 开启一个新的 https 服务器,监听在端口 1011 上,指定证书文件是 opener.pem
var reg_url={'action':'reg_url','type':'file_index','url':'/index','host':'*:1011','go':'/root'};
url_post_data(url,JSON.stringify(start_http_server4));
url_post_data(url,JSON.stringify(reg_url));
第 1 弹: https://www.v2ex.com/t/320838
第 2 弹: https://www.v2ex.com/t/321686
第 3 弹: https://www.v2ex.com/t/322192
第 4 弹: https://www.v2ex.com/t/322488
第 5 弹: https://www.v2ex.com/t/322698
项目地址: https://github.com/openerserver/openerserver_perl
微博: http://weibo.com/openerserver
微信公众号: