$ 0 0 I think 'server_name www.example1.com example1.com www.example2.com example2.com;' is what you want.