Do we need separate virtual host for www.?

Hello I have 2 domains(example1.com and example2.com) hosted on same server using Nginx,
so before I run certbot script do i need to make Virtual host entry for www.example1.com” and “www.example2.com ? or can we use multiple server_name [in case of apache ServerAlias as www.example.com]

If we need separate entry for domain and www. in that case it will lead to make 4 entries for two domains in virtual host file :slight_smile:

Certbot will handle multiple names in server_name just fine.

Thank you :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.