是否有支持CGI的轻量级Web服务器?

时间:2016-06-15 11:32:01

标签: http webserver cgi

我必须处理需要使用C / C ++的小型CGI脚本。我不想编译和安装到系统目录(如/var/www/cgi-bin),而是希望能够从我的开发目录中执行它。我尝试使用php -S localhost:8080,但似乎PHP的内置Web服务器不支持CGI二进制文件。

这就是我想要做的事情:

# Go to source directory and compile program.cgi
cd ~/projects/cgi
make
# Start the web server and open a browser.
web-server localhost:8080
google-chrome http://localhost:8080/program.cgi

0 个答案:

没有答案