Hi, I am trying to create a virtual host with apache.
My primary domain is www.example.com. And i am thinking to redirect example.com's traffic(non-www domain) to this www domain.
1- In my /etc/apache2/sites-available/example.com.conf file should i write www domain for server name and non-www domain for server allias? Or should i write the opposite?
2- Beside this i have DNS records for www domain but i havent created any dns records for non-www domain yet. Should i create dns records for non-www domain not to have problem during the installation of ssl certificate or in other fields?
Thank you.