Comments on Serving CGI Scripts With Nginx On Debian Squeeze/Ubuntu 11.04
Serving CGI Scripts With Nginx On Debian Squeeze/Ubuntu 11.04 This tutorial shows how you can serve CGI scripts (Perl scripts) with nginx on Debian Squeeze/Ubuntu 11.04. While nginx itself does not serve CGI, there are several ways to work around this. I will outline three solutions: the first is to proxy requests for CGI scripts to Thttpd, a small web server that has CGI support, while the second and third solution are very similar - both use a CGI wrapper to serve CGI scripts.
6 Comment(s)
Comments
Hi,
While browsing hello_world.cgi, the page keeps on reloading and terminates with 504 Gateway time out. Any work around?
Sanchit
Awesome! works like charm.
Really helped me setup quickly without hassles, thanks!
Thank you for writing a clear, clean, and helpful article. I've been banging my head against the wall trying to get awStats to update on demand under NGINX and this was the missing link!
why do I get 403 forbidden error?
I've done all chmod 755 for folders and chmod 644 files and stuffs but still I get the 403 error.
Great tutorial ! I can run the hello world script after follow your post. But when I try to run my cgi script (which processes a contact form), it shows "An error occurred while reading CGI reply (no response received)". Is it caused by the server misconfiguration or the script code itself ?
Thanks so much !