Redirect to another url when I force HTTPS

Discussion in 'Installation/Configuration' started by ewkilian, Aug 28, 2020.

  1. ewkilian

    ewkilian Member

    Hi,
    I have a website example : http://site1.com (the httpS is disabled), However when I force in the url tab httpS://site1.com, I was redirect automaticly to another one url from my server exemple https://site2.com.
    Can I disable this redirect ? or can I can choice this redirect ?
    Thank you
    Bye
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    This happens when SSL is not enabled for site1 - it will go to the first site in the list that has SSL enabled. I create a 000.companyname.com on my systems, so it will load that website and not one from other clients. You could also enable SSL for site1 ofcourse :)
     
  3. ewkilian

    ewkilian Member

    Hi, you create that on ispconfig, or direct on the system with nano ?
    I must create the file in /etc/apache2/sites-available/ ? and then a like in sites-enable ?
    Thank you
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Always add and edit sites through ISPConfig.
     

Share This Page