Quantcast
Channel: Active questions tagged servlets - Stack Overflow
Viewing all articles
Browse latest Browse all 714

Configure NGINX behind Tomcat Server both installed in different computers

$
0
0

I've found some information about how to configure NGINX as reverse proxy for Tomcat or other java servers but always having both, Nginx and java server in same machine, in my case I have Nginx and tomcat in separate machines.local tomcat server is http listening on port 9090 and want to publish behind nginx with ssl, I have configured in same Nginx proxy server other web servers (IIS) succesfully so for some reason configuring NGINX for java server having java server installed in separate machine requires other configurations

here my actual configuration:

` server {listen 443 ssl;server_name mysite.com;

    ssl_certificate         /var/cert/Cert.pem;    ssl_certificate_key     /var/cert/Cert.key;    proxy_cookie_path ~*^/.* /;    ssl on;    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;    ssl_ciphers EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:EECDH+RC4:RSA+RC4:!MD5;    ssl_prefer_server_ciphers on;    location / {            proxy_pass http://192.168.1.1:9090;            proxy_set_header Host $host;            proxy_set_header X-Real-IP $remote_addr;            proxy_set_header X-Forwarded_For $proxy_add_x_forwarded_for;            proxy_set_header X-Forwarded_Proto $scheme;            }    }    `

I need nginx proxy server configuration for my scenario.


Viewing all articles
Browse latest Browse all 714

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>