Hi
I use nginx as a proxy reverse and I need to setup the following:
https://server1/system/n1/tt needs to act as a proxy to http://server2:8088/tt
I have the follwoing setup in my server.conf:
...
location /system/n1/tt {
proxy_pass http://server2:8088/tt;
rewrite ^(/system/n1/tt)(.*)$ http://server2:8088/tt/$2 break;
...
This works and redirect to the URL http://server2:8088/tt/
What to do when I want to have in the URL https://server1/system/n1/tt ?
How to setup there the rewrite ?
Thanks in advance
I use nginx as a proxy reverse and I need to setup the following:
https://server1/system/n1/tt needs to act as a proxy to http://server2:8088/tt
I have the follwoing setup in my server.conf:
...
location /system/n1/tt {
proxy_pass http://server2:8088/tt;
rewrite ^(/system/n1/tt)(.*)$ http://server2:8088/tt/$2 break;
...
This works and redirect to the URL http://server2:8088/tt/
What to do when I want to have in the URL https://server1/system/n1/tt ?
How to setup there the rewrite ?
Thanks in advance