title: How to run CGI scripts on Nginx
body: <p>I have problem setting up CGI scripts to be run on Nginx, so far I've found <a href="http://wiki.nginx.org/SimpleCGI" rel="noreferrer">http://wiki.nginx.org/SimpleCGI</a> this stuff but problem is that I can't make perl script run as service so that it will run in background and even in case of restart it will start running automatically</p>
  
  <p>Do you have any idea? I'm running Centos 5</p>
  
  <p>I've found some solutions <a href="https://stackoverflow.com/questions/766397/how-can-i-run-a-perl-script-as-a-system-daemon-in-linux">here</a> but I couldn't integrate code given there with <a href="http://wiki.nginx.org/SimpleCGI" rel="noreferrer">this Perl script</a> 
  I'm completely zero at Perl, please help me
  Thanks </p>