I have applied ServerName and ServerAlias in my vhost and from here it is mentioned that Servername is hostname and port that server used to identify itself while ServerAlias is the alternate names for a host. Now my website is works in https+www.example.com, so I've set my
ServerName as "www.example.com"
and my ServerAlias put it as "example.com"(Previously was comment out, now I tried to apply it back)
so that when I type "example.com" in the browser, it will redirect me to "https://www.example.com" (please correct me if I understand it wrongly). But even after I apply those, it still doesn't redirect me, do I need to flushdns and stop-start my DNS? Because there are a few times that all changes have been done, restart apache and nothing reflects until I flushdns, is this a must? Thanks in advance!