• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question nginx reverse proxy for Tomcat

Dezi

New Pleskian
Hello,

I am new to Plesk and have some problems understanding where to do the configurations.

I have a domain "example.com" and simply want to establish a reverse proxy config from example.com:80 -> example.com:8080 using Nginx.

So, when I open my example.com my Tomcat application on port 8080 should get loaded with Nginx.

First thing I did was switching of the usage of apache by switching of "Proxy mode" in the Nginx settings.

Then I searched the forum and internet and ended up with this code...

server {
listen 80;
listen [::]:80;

server_name logyourtrades.com www.logyourtrades.com;

proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

location / {
proxy_pass http://127.0.0.1:8080;
}
}

...which is not working in the "Additional nginx directives" section.

This changes seems to have no effect. When I open my domain the Plesk standard website comes up.

Please help! THANKS!!
 
Back
Top