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!!
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!!