There are several similar questions about SO, but none of them are mine, and so far I have not been able to adapt their answers.
I want to map the URL http://sub.example.com to https://123.12.12.12/path so that the browser still displays the URL http://sub.example.com .
My Nginx configuration file looks like
server { listen 80; server_name sub.example.com; location / { proxy_pass https://123.12.12.12; rewrite ^/$ /path last; } }
Routing works here, but the URL http://sub.example.com/path displayed. How to make it display only http://sub.example.com ?
source share