Bouncing to Default Server Block

Reinis Rozitis r at roze.lv
Fri Sep 28 15:19:30 UTC 2018


> First domain redirects port 80 to ssl 443.
> Second domain is just port 80.
> Third domain is just port 80.
> 
> Second domain isn’t showing up, pointing to first domain.  Third domain is
> working.  Why would this happen?

If you are testing just with a browser make sure you've cleaned the cache (or disable it, or use some other tools which don't have cache (like wget for example)).

If by chance you opened the http://domain2 before it was added to the nginx configuration (or before nginx got reloaded) your browser cached the domain1 301 redirect and isn't actually doing a real request to the webserver anymore

rr 



More information about the nginx mailing list