Thanks a lot for your help! But unfortunately I´m getting the following message error when trying to start up nginx.
nginx: [emerg] "stream" directive is not allowed here in /app/nginx/conf/t3.conf:5
nginx: configuration file /app/nginx/conf/nginx.conf test failed
Here´s my installation command.
./configure --prefix=/app/nginx --sbin-path=/app/nginx/sbin/nginx --conf-path=/app/nginx/conf/nginx.conf --pid-path=/app/nginx/nginx.pid --with-http_v2_module --with-http_ssl_module --with-stream --with-stream_ssl_module --http-log-path=/logs/nginx/access.log --error-log-path=/logs/nginx/error.log --with-pcre=./libs/pcre-8.39 --with-zlib=./libs/zlib-1.2.8
this is my nginx.conf and my t3.conf
[NGINX.conf]
http {
include jboss-basic.conf;
include t3.conf;
include mime.types;
default_type application/octet-stream;
[NGINX-EOF]
[t3.conf]
error_log /logs/nginx/t3.log info;
stream {
upstream t3{
hash $remote_addr consistent;
server my_host_addr:host_port max_fails=3 fail_timeout=30s weight=5;
}
server {
listen host_port;
proxy_connect_timeout 1s;
proxy_timeout 3s;
proxy_pass t3;
}
}
[t3_EOF]
nginx: [emerg] "stream" directive is not allowed here in /app/nginx/conf/t3.conf:5
nginx: configuration file /app/nginx/conf/nginx.conf test failed
Here´s my installation command.
./configure --prefix=/app/nginx --sbin-path=/app/nginx/sbin/nginx --conf-path=/app/nginx/conf/nginx.conf --pid-path=/app/nginx/nginx.pid --with-http_v2_module --with-http_ssl_module --with-stream --with-stream_ssl_module --http-log-path=/logs/nginx/access.log --error-log-path=/logs/nginx/error.log --with-pcre=./libs/pcre-8.39 --with-zlib=./libs/zlib-1.2.8
this is my nginx.conf and my t3.conf
[NGINX.conf]
http {
include jboss-basic.conf;
include t3.conf;
include mime.types;
default_type application/octet-stream;
[NGINX-EOF]
[t3.conf]
error_log /logs/nginx/t3.log info;
stream {
upstream t3{
hash $remote_addr consistent;
server my_host_addr:host_port max_fails=3 fail_timeout=30s weight=5;
}
server {
listen host_port;
proxy_connect_timeout 1s;
proxy_timeout 3s;
proxy_pass t3;
}
}
[t3_EOF]