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
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Alias and subdomains

Discussion in 'Plesk for Linux - 8.x and Older' started by albans, Apr 27, 2007.

  1. albans

    albans Regular Pleskian

    26
     
    Joined:
    Nov 29, 2005
    Messages:
    173
    Likes Received:
    0
    Hi,
    I'm surprised that alises domains don't work with subdomains.

    Explanation:
    - I've a main domain name: domain.tld
    - I create one subdomain, like: sub.domain.tld
    - I add to domain.tld a domain alias: alias.tld
    - Then whey I get to sub.domain.tld, it works fine
    - BUT when I want to access sub.alias.tld, I get to the default page for the IP...

    Is theire a way to make subdomains work for aliases? Thanks!
     
  2. elglobo

    elglobo Guest

    0
     
    Hi,

    I Have the same problem, no ideas ?

    Thanks per advance.
     
  3. tomhaigh

    tomhaigh Guest

    0
     
    I think you can put in subdomains/<subdomain name>/conf/vhost.conf:

    serverAlias sub.alias.tld
     
  4. raaqi

    raaqi Guest

    0
     
    Exactly right.

    Create vhost.conf file in subdomains/subdomain/conf/

    Add this to the file: serverAlias subdomain.domainalias.com

    Run this command: /usr/local/psa/admin/sbin/websrvmng -v -u --vhost-name=domain.com or /usr/local/psa/admin/sbin/websrvmng -v -a to reconfigure all.

    It should be working. I just tested this and it works for me on FC6.
     
Loading...