Beeing forwarded to wrong account/domain

Discussion in 'Installation/Configuration' started by djsigfried56, Mar 1, 2016.

  1. djsigfried56

    djsigfried56 New Member

    Hi,

    The title might seem a bit weird, but I recently discovered that 2 of my domains are going to the wrong data space or they are going to another domain (all of those domains are hosted on the same server), but the others are fine. I'm using CloudFlare and I tried disabling it but I didn't not affect anything (I waited a bit for changes to take effect). I also tried removing the domain and then adding it back again but this also had no effect.

    Thanks for your help already
    Me
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    http or https or both?
     
  3. djsigfried56

    djsigfried56 New Member

    I'm using HTTPS

    Edit: HTTP is forwarded to HTTPS
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    does all sites have https enabled? if not, then non https sites that get accessed by https will get redirected to the first https site when apache cant find a matching vhost and domain on port 443. so if you run more then one site on a IP with https, then ensure that you enable https for all sites that use this IP.

    Beside that, ensure that you do not mix * and IP in sites, an IP is always a stronger match than a wildcard.
     
  5. djsigfried56

    djsigfried56 New Member

    All domains are using HTTPS, and what do you mean with
    "Beside that, ensure that you do not mix * and IP in sites, an IP is always a stronger match than a wildcard."

    And I'm also using SNI on those domains, could that be the problem? I don't think so because I'm also using SNI on another domain but this one works fine.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    This is not about sni, sni works with * and with an IP but apache will not route the traffic properly if you have some sites that use * in the IP field while others have the real IP selected.

    If you ensured that you did not mixed that, then check the generated vhost files on the shell.
     
  7. djsigfried56

    djsigfried56 New Member

    All domains where using * in the IPV4 field and some had IPV6 filled in, i'm now gonna assign the IPV4 and IVP6 to all sites and see if that fixes the issue
     
  8. djsigfried56

    djsigfried56 New Member

    And where should I find the vhost files? In /etc/apache2/sites-enabled?
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    yes.
     
  10. djsigfried56

    djsigfried56 New Member

    I don't see a problem in them
     

Share This Page