unable to redirect using nginx to another domain -
hey changed domain name domain1.ourapp.com
domain2.ourapp.com
i redirect requests domain1.ourapp.com
domain2.ourapp.com
using nginx conf. want browser url change.
in nginx conf have following
server { listen 80; rewrite ^ https://$host$request_uri? permanent; } server { server_name domain1.ourapp.com; rewrite ^ $scheme://domain2.ourapp.com$request_uri permanent; } server { listen 443 ssl; server_name domain2.ourapp.com # rest of stuff }
the trouble urls domain1.ourapp.com
return right response there browser redirection happening. in regard.
Comments
Post a Comment