Sometime we just can’t control the client is accessing our website either
via www or just without www.
In virtualhost setting for apache this can be done by adding the following line into
httpd.conf
<VirtualHost *:80> ServerAdmin webmaster@namran.com DocumentRoot /home/namran/public_html/namran.com ServerName namran.com ServerAlias www.namran.com ErrorLog logs/namran.com-error_log CustomLog logs/namran.com-access_log common </VirtualHost> |

Being a new user to webmin after having used Cpanel for a loooong time, this surely helped me add a cname for my maxcdn. Webmin is very complicated compared to Cpanel which makes me rethink my decision of switching to webmin. Thanks anyways.