From 990716d615bc9e5b8a51205959d904402ab2f541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Thu, 25 Apr 2019 10:29:03 +0200 Subject: [PATCH] fix config file --- Nginx-S2I-Image/nginx.conf | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Nginx-S2I-Image/nginx.conf b/Nginx-S2I-Image/nginx.conf index 8b54b88..4514d67 100644 --- a/Nginx-S2I-Image/nginx.conf +++ b/Nginx-S2I-Image/nginx.conf @@ -29,17 +29,21 @@ http { default_type application/octet-stream; - # Load modular configuration files from the /etc/nginx/conf.d directory. - # See http://nginx.org/en/docs/ngx_core_module.html#include - # for more information. - include /etc/nginx/conf.d/*.conf; - server { listen 8080 default_server; server_name _; - root /usr/share/nginx/html; - - # Load configuration files for the default server block. - include /etc/nginx/default.d/*.conf; + root /opt/app-root/src; + + error_page 404 /404.html; + location = /404.html { + root /opt/rh/rh-nginx112/root/usr/share/nginx/html; + internal; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /opt/rh/rh-nginx112/root/usr/share/nginx/html; + internal; + } } }