时间:2021-07-01 10:21:17 帮助过:5人阅读
server = httpService.createServer()
server.on 'http request', (req, res)->
req_ext = req.require_url.split /\.[asp|php|jsp|do]/i
switch req_ext
case 'php':
res.send os.execute 'php req.require_url'
case 'asp':
res.pip http.require 'IIS server...'
case 'do', 'jsp':
res.send http.require 'Tomcat server...'
default:
res.send file.read '' if file.exist