diff --git a/glibc/Dockerfile b/glibc/Dockerfile index 58e1f8d..69539b6 100644 --- a/glibc/Dockerfile +++ b/glibc/Dockerfile @@ -28,6 +28,7 @@ ARG NGINX_CONFIG="\ --with-file-aio \ --with-http_v2_module \ --with-http_ssl_module \ + --with-http_stub_status_module \ --with-stream \ --with-stream_ssl_module \ --with-threads" diff --git a/musl/Dockerfile b/musl/Dockerfile index 04869b2..9d7baa2 100644 --- a/musl/Dockerfile +++ b/musl/Dockerfile @@ -26,8 +26,9 @@ ARG NGINX_CONFIG="\ --with-openssl=/tmp/openssl-$OPENSSL_VERSION \ --with-zlib=/tmp/zlib-$ZLIB_VERSION \ --with-file-aio \ - --with-http_ssl_module \ --with-http_v2_module \ + --with-http_ssl_module \ + --with-http_stub_status_module \ --with-stream \ --with-stream_ssl_module \ --with-threads" diff --git a/rootfs/etc/nginx/nginx.conf b/rootfs/etc/nginx/nginx.conf index cc8c4bf..b907d83 100644 --- a/rootfs/etc/nginx/nginx.conf +++ b/rootfs/etc/nginx/nginx.conf @@ -21,6 +21,9 @@ http { root /etc/nginx/html; index index.html; } + location = /stub_status { + stub_status; + } location = /50x.html { root /etc/nginx/html; }