|
|
@ -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; |
|
|
|
|
|
|
|
|
# Load configuration files for the default server block. |
|
|
error_page 404 /404.html; |
|
|
include /etc/nginx/default.d/*.conf; |
|
|
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; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|