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

Domainalias cannot use the * for all

Discussion in 'Plesk 10.x for Linux Suggestions and Feedback' started by EasyCom, Sep 2, 2012.

  1. EasyCom

    EasyCom New Pleskian

    22
    23%
    Joined:
    Sep 3, 2007
    Messages:
    6
    Likes Received:
    0
    I need to work with lot of subdomains. To do this I have the A-record in DNS to *.domain.tld . In apache in the /etc/hosts/,host.conf apache needs to have a alias of *.domain.tld. How to do this in plesk? It must be a standard option here.
    Now every time plesk runs an update, it overwrites this setting.

    VSB =Very Stupid Behave
     
  2. Faris Raouf

    Faris Raouf Silver Pleskian Plesk Guru

    31
    30%
    Joined:
    Mar 15, 2009
    Messages:
    667
    Likes Received:
    17
    I'm not completely sure what you want to achieve here.

    If you want to add a lot of domain aliases and you don't want to do so via the Plesk GUI, you can do it via the command line by creating a script to read a list of the aliases and add them all to the domain)

    Manually adjusting apache config files for this purpose isn't really a good idea.
    But you could create a vhost.conf for the domain and add your alias configuration lines in there-- I'm not sure if this will work but it might (remember to use httpdmgr to get the vhost.conf read and loaded).
     
  3. EasyCom

    EasyCom New Pleskian

    22
    23%
    Joined:
    Sep 3, 2007
    Messages:
    6
    Likes Received:
    0
    on Apache it is documented to use the "ServerAlias *.example.com" entry. This does the trick for me.

    In plesk there is a validation on the value you enter. It schould accept the * to comply to the rule as indicated op apache-docs.
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
Loading...