Browse Source

fix config file

master
Nicolas Massé 7 years ago
parent
commit
990716d615
  1. 20
      Nginx-S2I-Image/nginx.conf

20
Nginx-S2I-Image/nginx.conf

@ -29,17 +29,21 @@ http {
default_type application/octet-stream; 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 { server {
listen 8080 default_server; listen 8080 default_server;
server_name _; server_name _;
root /usr/share/nginx/html; root /opt/app-root/src;
error_page 404 /404.html;
location = /404.html {
root /opt/rh/rh-nginx112/root/usr/share/nginx/html;
internal;
}
# Load configuration files for the default server block. error_page 500 502 503 504 /50x.html;
include /etc/nginx/default.d/*.conf; location = /50x.html {
root /opt/rh/rh-nginx112/root/usr/share/nginx/html;
internal;
}
} }
} }

Loading…
Cancel
Save