Subdomain (Vhost)

Discussion in 'General' started by onastvar, Mar 12, 2013.

  1. onastvar

    onastvar Member

    How should I setup DNS for Subdomain (Vhost)?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Add a dns a-record for the subdomain or a dns cname record.
     
  3. onastvar

    onastvar Member

    Does this CNAME looks okay?
     

    Attached Files:

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The dot at the end of mydomain.com is missing. If a value of a dns records is a fully qualified doain name, then it has to end with a dot.
     
  5. onastvar

    onastvar Member

    Thank You Till!
    DNS settings worked, however I see: "Welcome to your website!" This is the default index page of your website. I'm trying to make mydomain.com/osticket show as support.mydomain.com (see screenshotof my Subdomain Vhost page) anything I'm missing here?
     

    Attached Files:

  6. till

    till Super Moderator Staff Member ISPConfig Developer

    The web folder can not be modified after you created the vhost subdomain.
     
  7. onastvar

    onastvar Member

    I see.

    However, why do I see "Welcome to your website!" instead of contents of mydomain.com/osticket under support.mydomain.com?
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Did you replace the default index.html with your own index file?
     
  9. onastvar

    onastvar Member

    I was trying to make a subdomain (vhost) for an existing web site (i.e. mydoman.com). I installed OsTicket in subfolder of mydomain.com (/web/osticket) and would like to use subdomain http://support.mydomain.com/ instead of http://mydomain.com/osticket

    I followed instructions from the new ISPConfig3 manual. I made subdomain (vhost) and entered web folder "osticket" (see post #5 for screenshot) Does anyone know why this setup doesn't work?
     
  10. falko

    falko Super Moderator Howtoforge Staff

    You should have entered web/osticket.
     
  11. onastvar

    onastvar Member

    I've added web folder web/osticket however, I still see "Welcome to your website!". This is my subdomain (vhost)
     

    Attached Files:

  12. onastvar

    onastvar Member

    SOLVED. Thanks Falko! I had to remove index.html from web/osticket subfolder.
     
  13. Quijote Shin

    Quijote Shin New Member

    its good to know.. that

    /web/ folder its like the 'public_html' or 'www' in some hosts.

    its your own private 'www' folder to each 'website' you create

    so if you wanna make the content of /web/osticket/ default
    try this

    cd /path_to_/web/
    web# mv osticket/* ./

    and the dns entry cname 'support' to "mydomain." to make it work.
     

Share This Page