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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -