This commit is contained in:
jhx
2023-03-22 11:41:09 +08:00
parent d0dfc12286
commit f5efe88e4d
641 changed files with 505987 additions and 2 deletions
@@ -0,0 +1,11 @@
function htaccess2nginx(t) {
var text = $("#content").val();
return text.length <= 0 ? (pcjson_com_msg($("#content"), "请输入要转换的htaccess"), $("#content").focus(), !1) : 6e3 < text.length ? (pcjson_com_msg($("#content"), "htaccess内容长度不能超过6000!"), $("#content").focus(), !1) : (void $(function () {
if(text==''){
return;//empty error
}
var nginx = RewriteConf.convert(text);
hightout("# nginx configuration by "+window.location.host+"\n\n"+nginx);
}))
}