The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

altering httpd.conf

Discussion in 'EasyApache' started by never2far, Apr 25, 2013.

  1. never2far

    never2far Active Member

    Joined:
    May 6, 2008
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I want to be able to define 2 virtualhosts(or a virtualhost with 2 ip-s) so that one domain can be served using two different IP-s...so i have tried:

    - manually edit httpd.conf, and modify the VirtualHost from <VidtualHost 192.168.1.10:80> to <VirtualHost 192.168.1.10:80 192.168.1.20:80> and then to run /usr/local/cpanel/bin/apache_conf_distiller --update

    - creating a separate virtualhost with the secound IP in the /usr/local/apache/conf/includes/pre_virtualhost_1.conf, rebuild httpd (/scripts/rebuildbuildhttpdconf) without success.


    Can someone explain me what I do wrong or how can I solve this ?


    Thank you
     
  2. gopkris2005

    gopkris2005 Well-Known Member

    Joined:
    Jan 9, 2007
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    INDIA
    cPanel Access Level:
    Root Administrator
    Twitter:
    You can't use different virutal host entries for same domains. It will confilict and confusion to resolve domain with two different ips.
     
Loading...

Share This Page