スキップしてメイン コンテンツに移動

投稿

3月, 2022の投稿を表示しています

nginx にて fcgiwrapを導入し CGI 実行環境 構築 on FreeBSD13

FreeBSD13 にて CGI が動作するWebサーバを構築する。 nginx は CGI の実行ができないので fcgiwrapを導入する。 nginxとfcgiwrapの通信は UNIXドメインソケットを利用する。 FreeBSDのバージョンは 13.0p8 % freebsd-version 13.0-RELEASE-p8 インストール ここに nginx と fcgiwrap をインストールする。 % doas pkg install nginx fcgiwrap New packages to be INSTALLED: fcgi-devkit: 2.4.0_5 fcgiwrap: 1.1.0_11 nginx: 1.20.2_3,2 pcre: 8.45 ===> Creating groups. Using existing group 'www'. ===> Creating users Using existing user 'www'. ===== Message from nginx-1.20.2_3,2: -- Recent version of the NGINX introduces dynamic modules support. In FreeBSD ports tree this feature was enabled by default with the DSO knob. Several vendor's and third-party modules have been converted to dynamic modules. Unset the DSO knob builds an NGINX without dynamic modules support. To load a module at runtime, include the new `load_module' directive in the main context, specifying the path to the shared object file for the module,