DNS, apache configuration for www.abc.com , abc.com

Discussion in 'Server Operation' started by er.aneeshansari, Nov 3, 2014.

  1. er.aneeshansari

    er.aneeshansari New Member

    Hello All,

    i am facing issue with Linux VPS.
    whenever i am clicking xyz.com
    it is working fine
    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 xxx.xxx.xxx.xxx>
    ServerAdmin [email protected]
    DocumentRoot /var/www/www.xyz.com/
    ServerName xyz.com
    ErrorLog logs/xyz_com

    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.

  2. srijan

    srijan New Member HowtoForge Supporter

    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.

Share This Page