why multiple domains are directed towards same the host

Discussion in 'General' started by c-gundo, Oct 13, 2011.

  1. c-gundo

    c-gundo New Member

    I have a strange problem with my (new) server (OVH.net automatic installation)
    i have 2 domains http://www.cgundoffice.com and http://www.modulance.net
    each are configured on a separed DNS server with the A Zone linked to the IP of the ISPconfig3 server
    On the ISPconfig3 server, i have created 2 sites, one for each domains

    But now, when i try to connect to those URL, each of them are directed to the same domain (http://www.cgundoffice.com) ... why ?

    any suggestion ?

    thx :)
     
  2. kwickcut

    kwickcut Member

    check and make sure the two site directories are not the same



    kwick
     
  3. c-gundo

    c-gundo New Member

    i have checked the folder
    and also the vhost files
    /etc/apache2/sites-available/cgundoffice.com.vhost

    Code:
    <VirtualHost 91.121.92.131:80>
          DocumentRoot /var/www/cgundoffice.com/web
      
        ServerName cgundoffice.com
        ServerAlias www.cgundoffice.com
        ServerAdmin webmaster@cgundoffice.com
    
        ErrorLog /var/log/ispconfig/httpd/cgundoffice.com/error.log
    
    /etc/apache2/sites-available/modulance.net.vhost
    Code:
    <VirtualHost 91.121.92.131:80>
          DocumentRoot /var/www/modulance.net/web
      
        ServerName modulance.net
        ServerAlias www.modulance.net
        ServerAdmin webmaster@modulance.net
    
        ErrorLog /var/log/ispconfig/httpd/modulance.net/error.log
    
    but what i see is that all the request to my server go to the same host
    http://91.121.92.131 ... same host

    i have reloaded Apache, restart the server ... not better
     
  4. c-gundo

    c-gundo New Member

    resolved

    i have found the solution :)
    in the web domain config page, i must set IP on * and not on the real IP of the server :rolleyes:
    apache restart and all work fine
     

Share This Page