当前位置: 动力学知识库 > 问答 > 编程问答 >

Easiest way to configure nginx to run CGI Perl and Python for few scripts that under very low use?

问题描述:

I am looking for a simple nginx setup that runs Perl and Python scripts that are under very low load (99% of time a single user browsing them and no mode than 100 request/day).

Because the server is running on a AWS under a micro instance I am looking for something that has a very low memory footprint.

Update: I'm running an Ubuntu 12.04 on it and after installing nginx which does not contain the embedded perl module, I installed nginx-extras which is supposed to contain it. Still I have no idea how to enable it, also strage it did not complain about the nginx package.

网友答案:

nginx does not support (by design) CGIs. You need an application server for managing them:

http://projects.unbit.it/uwsgi/wiki/CGI

(it is pretty advanced so be prepared for some study, but you should be able to reach your objective)

分享给朋友:
您可能感兴趣的文章:
随机阅读: