• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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