All websites are being redireted to one specific website

Discussion in 'Installation/Configuration' started by sza, Mar 19, 2017.

  1. sza

    sza Member

    I've recently installed ISPConfig 3.1.2 on a fresh ubuntu 16.04 installation using the automatic tool.

    I've created a first website/db/ftp and uploaded the content successfully using the system.
    Now when I try to create a new website to the same customer, even though it has it's own DNS entries inside ISPCONFIG and it's own directories,
    When trying to enter the website I see the first website.
    You can see the problem here:
    (redirects to even though there is no redirection configured).

    Will be glad to get your help..
    Thank you.
  2. sza

    sza Member

    Anyone? Please help me.
    when trying to curl this domain using my PC I get a short HTML page which says this domain is being 302 redirected to
    There is no .htaccess file on the virtualhost's web root, and all Apache's settings were created automatically by ISPConfig.

    What could be the problem ?

    Thank you,
  3. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    I can confirm the 302 redirect. Is there anything under the Redirect tab for the website?
  4. sza

    sza Member

    The above example is no longer relevant. I've changed the domain to point now to another server until I'll fix the problem. (

    There is nothing under the Redirect tab on the website.
    another thing is, that I have a .htaccess file on the website (client1/web1) which supposed to change the address of each client to "". When I removes that .htaccess from - the result is that entering shows the content of client1/web1 ( and the URI is still (without redirection, just shows the content of another directory)
    Will be glad for any help. it happens on all new websites I open in ISPConfig.
    (there all takes the data of any virtualhost from client1/web1/.

    Thank you!
  5. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    That sounds like you've mixed ip addresses among your sites, eg. web1 site has the ip address set, while other sites have '*' as the ip address - you want to consistenly use one or the other. That doesn't explain the redirect you used to have, but maybe gets you closer to working.
    sza likes this.
  6. sza

    sza Member

    Thank you very much @Jesse Norell , that was the problem. The redirection happent because on web1 I have an htaccess file that redirect all regular traffic to https://. so requesting made a redirection to

    Can you please shortly explain to me why not specifying the server's ip address routed all traffic to web1? I'm trying to understand the system's logic.

    Thank you very much! you've helped me a lot.
  7. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    It's the order in which the web server matches the request to available virtualhost definitions, explained in

Share This Page