Snippets

RuWeb.net build ngx_http_passenger_module

Created by Andrey Chesnakov last modified
1
2
3
4
5
6
7
8
wget -qO- "https://www.phusionpassenger.com/latest_stable_tarball" |tar xz
wget -qO- "https://nginx.org/download/$(nginx -v 2>&1 | cut -f3- -d' ' | tr '/' '-').tar.gz" |tar xz
cd nginx-*/
echo "./configure $(nginx -V 2>&1| grep "^configure arguments:" |cut -f2- -d:)" --add-dynamic-module=../passenger-*/src/nginx_module >build.sh
make clean
sh build.sh
make modules
cp objs/ngx_http_passenger_module.so /etc/nginx/modules/

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.