• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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