nginx – multiple virtual sites all going to the first site only

I suggest *EVERYONE* in server_name to have www.domain.com and domain.com… will look something like this

server_name www.domain.com domain.com;

This solved my problems of typing www.domain2.com and see domain.com etc etc…!

Leave a Reply

Your email address will not be published. Required fields are marked *

*