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 *

This site uses Akismet to reduce spam. Learn how your comment data is processed.