question about Perl CGI

Francis Daly francis at daoine.org
Wed Mar 30 20:05:25 MSD 2011


On Wed, Mar 30, 2011 at 05:47:05PM +0200, Yanxin Z. wrote:

Hi there,

> Could you tell me how to fix it?

> location ~ ^/cgi-bin/.*\.cgi$ {

> I put my cgi file in html/cgi_bin/print.cgi

> I start nginx, and visit 127/0.0.1/cgi_bin/print.cgi

You have "location" in nginx.conf. You have the directory your file is
in on your filesystem. You have the url you access in your web client.

Make them all use "cgi-bin", or make them all use "cgi_bin".

Good luck,

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list