@rimifon/asp
v1.1.6
Published
An ASP(JScript) Web Server that based node.js.
Downloads
25
Maintainers
Readme
支持 HTTP 和 HTTPS,支持经典ASP(JScript)的基本写法,支持断点续传,反向代理。 Supporting both HTTP and HTTPS, it provides basic configurations for Classic ASP (using JScript), supports resumable file downloads (resuming broken transfers), and includes reverse proxy functionality.
Sample code:
cp node_modules/@rimifon/asp/test.js ./ cp node_modules/@rimifon/asp/default.asp ./ node test.js
启用 https,需要在 ./ssl/default 目录下放置默认证书 key 和 cert 文件,且文件名分别为:key.pem 和 server.crt。 To enable HTTPS, it is necessary to place the default certificate key and cert files in the ./ssl/default directory, with respective filenames of key.pem and server.crt.
然后在启动脚本中编辑配置站点证书(例如 test.js),编辑对应的 host,设置该 host 的 cert 和 key 文件位置: Subsequently, in the startup script, edit the configuration for the site's certificate (for example, in test.js), and set the corresponding host's cert and key file locations:
hosts: [
// 默认第一个网站
{ domain: "default", root: ".", cert: "./ssl/www.yourdomain.com.crt", key: "./ssl/www.yourdomain.com.key" }
],