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

Priorities in subdomains.

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by DiogoR, May 20, 2009.

  1. DiogoR

    DiogoR New Pleskian

    May 19, 2009
    Likes Received:
    I have one domain with this configuration in vhost.conf:
    ServerAlias *.domain.com

    The point is to make the main page of the domain to receive all requests of all subdomains and analyze the request address to return a diferent page based on the subdomain and go to the main page itself for non existent subdomains.

    At some point I want to create domains (hostings) in plesk like customer.domain.com, but in this specific case I need that this domain configuration prevails instead of the generic one (*.domain.com), a thing that seems not to happen.

    I think I would be able to acomplish this using a vhost.conf like this:
    ServerAlias subdomain1.domain.com
    ServerAlias subdomain2.domain.com
    ServerAlias subdomain3.domain.com

    Where I add every new subdomain to the vhost.conf file.

    But doing this I will loose potencial customers that wont go the main page by means of a mistyped subdomain.

    Unless I there is a way to do something like this in vhost.conf:
    ServerAlias *.domain.com (except) customer.domain.com

    or... I can make the plesk "Server Default page" for the main domain to open the main domain page.

    Note: Domain.com is for the example.

    By the way, where is this plesk "Server Default page", I would like to change it to redirect my customers to my business page instead of showing a page advertising plesk products which the publicity was not paid to me and don't mean anything to most of my customers and to advertise for the ones that have meaning must be paid.

    Best Regards.