Forum: NGINX How can i execute *.cgi files via browser?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D2d314970c6ac9aa0dd3f4ecf97bbe20?d=identicon&s=25 Dieter Zinke (Guest)
on 2009-03-07 15:08
(Received via mailing list)
I have setup nginx for using perl via this scenario
http://wiki.codemongers.com/NginxSimpleCGI.

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

You have chosen to open
test.cgi
which is a: BIN file
from: http://example.com
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?
2e321cc0efe9422d37165e922298494e?d=identicon&s=25 Cliff Wells (Guest)
on 2009-03-08 00:46
(Received via mailing list)
On Sat, 2009-03-07 at 05:58 -0800, Dieter Zinke wrote:
> 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?
>

Make sure you clear your browser's cache after changing mime types.

Cliff
This topic is locked and can not be replied to.