• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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