Advertisement
DeyvisonGuilherme

Config FastCGIWrap

Dec 21st, 2022 (edited)
1,096
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. location /cgi-bin/ {
  2.   gzip off;
  3.   root  /usr/lib;
  4.   fastcgi_pass  unix:/var/run/fcgiwrap.socket;
  5.   include /etc/nginx/fastcgi_params;
  6.   fastcgi_param SCRIPT_FILENAME  /usr/lib$fastcgi_script_name;
  7. }
  8.  
  9. # Content
  10. # ee /usr/lib/cgi-bin/test.pl
  11. #!/usr/bin/perl
  12. print "Content-Type: text/html\n\n";
  13. print ("<h1>Perl is working!</h1>");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement