Hello All, i am facing issue with Linux VPS. whenever i am clicking xyz.com it is working fine but when ever trying to click www.xyz.com it is opening firstly configured website on virtual host. i configured virtual host. whatever ServerName i am giving <VirtualHost xxx.xxx.xxx.xxx> ServerAdmin [email protected] DocumentRoot /var/www/www.abc.com/ ServerName abc.com ErrorLog logs/abc_com </VirtualHost> <VirtualHost xxx.xxx.xxx.xxx> ServerAdmin [email protected] DocumentRoot /var/www/www.xyz.com/ ServerName xyz.com ErrorLog logs/xyz_com </VirtualHost> i already made entries in /etc/hosts xxx.xxx.xxx.xxx www.abc.com xxx.xxx.xxx.xxx www.xyz.com both are same IP address at domain panel both A and CNAME entries are correct. Thanks, Aneesh
Is ISPConfig installed? You need to do the configurations with ISPConfig webinterface, the webinterface automatically writes the required code for the configuration in the required file.