正解は `server_name` です。`server_name example.com www.example.com;` のように記述し、Hostヘッダーに基づいて適切な `server` ブロックが選択されます。