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
Post a Comment