Sub Domain Creation

Discussion in 'ISPConfig 3 Priority Support' started by illuder, Jul 3, 2021.

  1. illuder

    illuder Member

    Hi
    I'm moving this thread here as it was incorrectly posted in the linux forum, and that thread was completed.
    i'm currently getting the sub-domains up and running.
    I'm struggling a little.
    the subdomain was created and DNS added (without redirect)
    https://bolotalk.com/demo works
    but
    https://demo.bolotalk.com redirects to https://bolotalk.com

    i setup a subdomain in the same website... it shows the
    demo.bolotalk.com
    in Dependent sub- / aliasdomains

    PS. I just added an R=310,L redirect in the subdomain of /demo/

    the demo directory is under /web/demo/

    https://snipboard.io/Q5x3BO.jpg
    subdomain

    ======
    https://snipboard.io/o7As41.jpg
    website
    ======
    https://snipboard.io/rEDwJ2.jpg
    redirect
    ======
    https://snipboard.io/kxncy9.jpg
    dns
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Set auto subdomain for the root domain to www.
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I did not understand what you are trying to accomplish nor what works as you like and what does not.
    But is Aliasomain (Vhost) what you should be using? It may be this has to be enabled in ISPConfig system settings to be available in the Panel. See ISPConfig manual.
     
  4. illuder

    illuder Member

  5. illuder

    illuder Member

    i'm simply trying to get
    https://demo.bolotalk.com to display a wordpress install
     
  6. illuder

    illuder Member

  7. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Your screenshot shows you redirecting the demo subdomain to itself (using https), which can't work.

    Do you want the /demo url of the main site to continue working as a wordpress install? Or do you want it to redirect to the demo.bolotlak.com subdomain, and that's where wordpress runs? You'll save yourself some headache to pick one url for the wordpress install (eg. the subdomain) and have the other location (eg. the /demo url of the main site) redirect there.

    There are numerous ways things can be setup depending on what you want, but I would probably delete the /web/demo install entirely (again assuming it's demo content and easy to reinstall) and add demo.bolotlak.com as a vhost subdomain, with web root set to /demo.bolotlak.com or similar. Then just redirect /demo location on the main site to the subdomain.
     
  8. illuder

    illuder Member

    let me try your option, will create the subdomain as a website with its own dns
     
  9. illuder

    illuder Member

    all good, i created a new website demo.bolotalk.com , added it to dns and i'm up and running , thank you.
    i'm just surprised that there are issues to add subdomains within the main tld
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    There are no such issues. Most likely you installed a cms or so in that website that did the redirect, e.g. WordPress is doing that automatically.
     
  11. illuder

    illuder Member

    noted, i'll be deploying another subdomain in the week... i will do so without installing WP first. tx
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    When a subdomain shall have it's own content, then it's always better to create a new website for the subdomain as @Jesse Norell mentioned already as CMS systems do not like it in most cases when you put other sites into a subdirectory.
     
    illuder likes this.
  13. illuder

    illuder Member

    well noted, thank you for the good advice..
     

Share This Page