1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice

Making www.sub.domain.com point to sub.domain.com

Discussion in 'Plesk for Linux - 8.x and Older' started by Jamai, Dec 24, 2004.

  1. Jamai

    Jamai Guest

  2. Brains

    Brains Guest

    I'd like an "elegant" way to accomplish this as well. I've added the appropriate stuff to /home/httpd/vhosts/<domain>/conf/httpd.include but of course psa clobbers this anytime I make modifications via the control panel.

    The other option I haven't messed with but should actually work better (although still not "elegant") is to add a row to the subdomains table. At least then it would re-add the stanza to the httpd.include file :)
  3. hostcorp

    hostcorp Guest

    Firstly, create a CNAME pointing www.subdomain.domain.com at subdomain.domain.com.

    Next, in the file /home/httpd/vhosts/domain.com/subdomains/subdomain/conf/vhost.conf put 'ServerAlias www.subdomain.domain.com' and then run /usr/local/psa/admin/bin/websrvmng -v -a
  4. Jamai

    Jamai Guest

    Thanks, that worked ;)
  5. aminthakkar

    aminthakkar Guest

    But this system will work for all domain or each domain I have to use same procedure ?

    I want to get solution parmenant whenever my client create a subdomain it should access www.subdomain.mysite.com

    How to do it ?