alias domain without SSL

Discussion in 'ISPConfig 3 Priority Support' started by pzajda, Jul 24, 2019.

  1. pzajda

    pzajda Member HowtoForge Supporter


    I host a website wich redirects to https, (checked in redirection tab).
    I would like to create an alias for this website which would not redirect to https.
    Is it possible?

    And another question comes to my attention: what is the difference with a subdomain alias? Fields are the same.
    If this last question has its answer in the user guide, I read more carefully :)

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Not by using the http to https redirect checkbox in ISPConfig. You will have to untick that and then write some manual redirect rules and add them in a .htaccess file or the apache directives field of the website which does the redirect selectively for the main domain only and not for all domains of that vhost as the ISPConfig function is doing it.

    The fields are not completely the same, for the alias domain, you can enter a full domain name while the subdomain offers you only the possibility to enter the subdomain part while you have to select the main domain. This might not make sense if this is your own server where you have full access t anyway, but it makes sense for ISP's that sell hosting as they can give their customers free subdomains but not free alias domains in a hosting package.
  3. pzajda

    pzajda Member HowtoForge Supporter

    Good. So I added a condition with the Host and chem in the NGinx Options in Options tab.
    Now it redirects visitors only when needed.
    Thanks a lot.

Share This Page