nginx friendly error page.
-
Nginx
- 1.14.x (last tested: 1.14.0)
- 1.13.x (last tested: 1.13.6)
-
Openresty
- 1.13.x (last tested: 1.13.6.1)
Earlier versions are not tested.
# patch nginx
cd nginx-1.13.6
wget -c https://raw.githubusercontent.com/taomaree/ngx_friendly/master/ngx_friendly.patch
patch -p0 < ngx_friendly.patch
./configure
make
sudo make install
# patch openresty
wget -c https://raw.githubusercontent.com/taomaree/ngx_friendly/master/ngx_friendly.patch
wget -c https://openresty.org/download/openresty-1.13.6.1.tar.gz
tar zxf openresty-1.13.6.1.tar.gz
cd openresty-1.13.6.1/bundle/nginx-*
patch -p0 < ../../../ngx_friendly.patch
cd ../../
./configure
make
sudo make install
Any help would be appreciated! Especially someone could turn this patch into an nginx module.
ngx_friendly is BSD licensed.
This project inspired by and forked from Tengine.