Website Redirecting to a Different Client's Website

Discussion in 'General' started by KZ Amadeus, Oct 2, 2018.

  1. KZ Amadeus

    KZ Amadeus New Member

    Hi guys,

    I have a very strange problem. I have about 5 clients on my server. Mostly just friends that have small websites with low/no traffic.

    There is a weird issue. One website is redirecting to ANOTHER CLIENT's website! For example, there is client1. Client1 has his own, private login to ISPconfig. client1's website is Client2 is a totally separate client with their own separate login to ISPconfig.

    But client1 is redirecting to client2's website! I checked client1's redirect settings and there are no redirects in place in ISPconfig for client1. To make matters worse, client2's website has all kinds of adult items on it. So when people visit they're brought to a very explicit page. Very embarrassing.

    Where can I begin to troubleshoot this? And any ideas on how to fix this? Using ISPConfig 3 with nginx

    EDIT: It appears to only affect HTTPS. Basically, if you visit client1 with https it redirects to client2, but otherwise its fine.
    Last edited: Oct 2, 2018
  2. rosehosting

    rosehosting Member

    Most likely, client1's website is not having a HTTPS server block, and the client2's have it. You will want to check your nginx configuration, the HTTPS on client2's website perhaps is set to nginx default https server.
  3. KZ Amadeus

    KZ Amadeus New Member

    Thanks a bunch. Any suggestions on what config files to check first?
  4. Please check your control panel sites section IP field. I hope your any one client select you hosting server there but you need to select (*) there.

  5. KZ Amadeus

    KZ Amadeus New Member

    Hi guys, IP field is always " * " for all clients. Thank you for mentioning though.

    Any other ideas? rosehosting mentioned checking nginx config files, but which ones should I look at? I think they are probably right, since it only affects SSL
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Which kind of ssl cert do you use on that website? let's encrypt? If yes, is the let#s encrypt checkbox enabled when you open the site settings now. If not, enable that checkbox and save, then wait 2 minutes and check if the website works now. If it does not work, then check again if the Let's encrypt checkbox is still checked, if not, then the LE cert could not be issued. In that case, look here:
    Frankenstein likes this.
  7. KZ Amadeus

    KZ Amadeus New Member

    Hi till - unfortunately, that still didn't fix the issue. I do not use Let's Encrypt, I was never able to get certbot to work on my server. So I use a Comodo SSL certificate (eventually, I would like to figure out how to fix certbot).

    It is definitely an SSL issue, since the redirect only happens with https

    Any other ideas?

Share This Page