Domains mixing up

Discussion in 'Installation/Configuration' started by BrojJedan, Jun 2, 2021.

  1. BrojJedan

    BrojJedan New Member

    Hi!
    I have a problem with domains mixing up. I have a server with multiple hosted domains.
    Example:
    I want to visit domain1.tld. It works and opens the correct website. I refresh that website and then all of a sudden it opens the contents of domain2.tld. I refresh that site, and it stays on domain2.tld. The same if I visit domain3.tld, it jumps to domain2.tld.
    The next day it's a different domain that is causing problems. Same pattern, domain2.tld and domain3.tld jump to domain1.tld. Or domain3.tld jumps to domain1.tld or domain2.tld. And it works for the first XY tries, then jumps to different domain. And from there, it always jumps even if I manually input the first domain (not just refresh the page). This is not happening for all of the domains, just 3 out of about 10..

    I have seen the problem with mixing domains up if you use mixed IP and *, but I use only * on ALL domains. Also all domains use HTTPS, except a few subdomains (Subdomain for website). But the problem occured even before I set up those subdomains.

    I hope the description was colorfull enough, so somene will be able to help.
    Thank you! And also thanks for this awesome piece of software!
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Have you read https://www.howtoforge.com/community/threads/please-read-before-posting.58408/ and the visiting domain A and domain B is showing does not apply to your case?
    I would start with adding a default domain that is surely first in alphabetic order, like 0000aaaa.tld, create self signed certificate for it and test if that site is shown (put index.html with text "This is site 0000aaa.tld").
     
  3. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    This sounds like the php cache, when using php-fpm with chroot there are collisions in the file path names, so they get mixed up. There is a setting to fix this you can make yourself, search the forum here or gitlab, I don't remember which; it will be added by default in a future bugfix.
     
    Th0m likes this.
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  5. BrojJedan

    BrojJedan New Member

    OMG! I would never find this on my own. Thank you, thank you, thank you! A million times!
     
    Th0m likes this.

Share This Page