Solved: nginx + internal hostname

Started by MaDe, February 10, 2021, 02:17:08 PM

Previous topic - Next topic
February 10, 2021, 02:17:08 PM Last Edit: February 12, 2021, 04:42:38 PM by MaDe
Good day,

I setup a nginx reverse proxy but I have two problems that I cannot resolve.

1. When I request  <sub.example.com> it changed the URL to my internal hostname <hostname/folder1/folder2>.
2. When I request  <sub.example.com/folder1/folder2> it is working but it is planned that only the domain will be
    shown.

And maybe third problem....I am new to nginx.
Can someone point me in the right direction? Many thanks for your help.
Thx MaDe

Solved:
Ok got it.. on the backend server was a redirect to a subfolder configured.