LoginSignup
8
8

More than 5 years have passed since last update.

nginxでperlを動かす

Posted at
$ sudo apt-get install nginx fcgiwrap libgcgi-perl

例)/var/www/vhosts/example.com/cgi-bin以下のperlファイルをhttp://example.com/cgi-binで動かす場合

location /cgi-bin/ {
  gzip off;
  root /var/www/vhosts/example.com/;
  include fastcgi_params;
  fastcgi_pass unix:/var/run/fcgiwrap.socket;
  fastcgi_index index.pl;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

起動

$ /etc/init.d/fcgiwrap start
$ /etc/init.d/nginx start
8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8