以下是创建一个虚拟主机的代码:config.xml(配置信息)AdministratorxxxxxxIUSR_MACHINEdnsadminyyyyy10.1.143.227tryitglobal.asa(配置文件)SubApplication_OnStartsetff=server.createobject("microsoft.xmldom")ff.async=falseff.loadserver.mappath("config.xml")setrootElem=ff.documentElementfore1=0torootElem.childNodes.length-1application(trim(rootElem.childNodes.item(e1).nodeName))=trim(rootElem.childNodes.item(e1).text)nextEndSubindex.asp(申请页面)""thenifpass=""orinstr(email,"@")填写错误"elseSETGG=SERVER.CREATEOBJECT("QWEB.USER")gg.logonapplication("admin")