amazon web services - Nginx redirection magic -


i have third-party that's forwarding traffic on me on subdomain - let's call subdomain.thirdparty.com

i forward traffic on www.mysite.com/subdomain - app lives. links in app require /subdomain part in url.

but maintain third-party url in browser, subdomain.thirdparty.com or subdomain.thirdparty.com/subdomain

i'm hosted on aws have route 53 available me, , have following nginx setup:

server{     server_name *.mysite.com;     listen 80;      location /subdomain/{         proxy_set_header script_name /subdomain;         proxy_set_header host $host;         proxy_pass http://127.0.0.1:9014;     } } 

i've tinkered around nginx settings can't seem figure out. guidance appreciated.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -