パッケージをインストールします。
npm install node-fastcgi
FastCGI サーバーを起動させます。
node server.js
cgi-fcgi を実行します。
export REQUEST_METHOD=GET
cgi-fcgi -bind -connect 127.0.0.1:8000
次のような結果が返ってくれば正常に動いています。
Status: 200 OK
Content-Type: text/plain
Date: Sun, 15 Jun 2025 23:58:03 GMT
Connection: close
It's working