Welcome! Log In Create A New Profile

Advanced

Re: CGI support - Sorry to bring it up

May 08, 2014 10:28AM
> Hi All,
> We've built a new EC2 server based on Virtualmin + Nginx. I've seen
> Nginx recommended a lot over the years so thought if we are moving to
> the cloud, and want things to be optimal, then it's time to give it a
> go. Before our setup has been Virtualmin + Apache (with suexec and fcgid).
>
> For some of our old Perl CGI scripts we've hit the issue I'm sure most
> of you are familiar with. I've searched for solutions and have found a
> number, all of which have various caveats. It's unclear as to what they
> best way to deal with this is. Along with plain CGI (and fastcgi) suexec
> is an important security feature to ensure that compromised scripts
> don't have permission to wreak havoc on other user accounts, and run
> things with tight permissions (along with sorting our FTP script upload
> issues you can have).
>
> There are various hack arounds for suexec style behaviour, I haven't
> figured yet how they can work with the CGI workarounds.
>
> It seems like this is such a common demand that there should be an
> established (efficient and reliable) solution to deal with it by now?
>
> Any pointers would be greatly appreciated.
>
>
> Lyle
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

uWSGI has full (and solid) CGI support, and it pairs perfectly with nginx:

http://uwsgi-docs.readthedocs.org/en/latest/CGI.html

recent releases (>= 2.0.2) supports async modes so you can spawn multiple
cgi script without the need of a 1:1 mapping with a thread.


You will find the plugin exposes features not available in apache
(included accelerators)

--
Roberto De Ioris
http://unbit.it

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

CGI support - Sorry to bring it up

Lyle May 08, 2014 10:12AM

Re: CGI support - Sorry to bring it up

roberto May 08, 2014 10:28AM

Re: CGI support - Sorry to bring it up

Francis Daly May 12, 2014 07:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready