debian9 Nginx Ispconfig and Alias domain

Discussion in 'Installation/Configuration' started by virk6, May 3, 2018.

  1. virk6

    virk6 Member HowtoForge Supporter

    I am trying to install 3 domains to point on the same web site. I follow the directives described in the Ispconfig 3.1.
    I am working on debian 9 witn Nginx server and i have three domains domain1, domain2, domain3. the parent site is domain1 and i want domain2 and domain3 to point on the main site domain1. Nothing works up to now.
    Whatever the type of redirection, domain2 and domain3 do not point to the parent site domain1. So what to do ? Please help.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Just add domain 2 and 3 as alias domains of the website, do not select anything on the redirect tab.
     
  3. virk6

    virk6 Member HowtoForge Supporter

    Thans you Mr Till.
    I have done it simply as you said and i dont select anything but i got this problem :
    " ERROR 404 - Not Found!
    The following error occurred:
    The requested URL was not found on this server.
    Please check the URL or contact the webmaster. "

    And the web site is trying to install the Alias domain .. why ? I restart nginx but no solution ...
     
  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Check your vhost folders for .err file for domain1.
     
  5. virk6

    virk6 Member HowtoForge Supporter

    Helo Mr ahrasis you are right.
    Every thing is working now.
    I found in the vhost folder sites-available/ that main parent domain1 has an error file like domaine1.com.vhost.err because i added extra option file to nginx directives The problem is solved.
    Thanks you very much Mr ahrasi
    Virk
     

Share This Page