How can i execute *.cgi files via browser?

Dieter Zinke dieterzinke at
Sat Mar 7 16:58:51 MSK 2009

I have setup nginx for using perl via this scenario 

I can run *.pl files but not *.cgi files. Callin a *.cgi file via the browser results in a 

You have chosen to open
which is a: BIN file
Would you like to save this file?

I ve tried to fix this via the mime.types file

    application/x-perl                    pl pm cgi;

but that doesn' t work. How can i execute *.cgi files like *.pl files via browser url?


More information about the nginx mailing list