vhost priority / ordering in sites-enabled

Discussion in 'General' started by elCorazon, Jul 17, 2013.

  1. elCorazon

    elCorazon New Member

    Hi,

    I have a web sample.com with Auto-Subdomain set to * and I need to keep this setting because there are a lot of subdomains that must be sent to that web.

    I now need another web with a specific subdomain abc.sample.com. However the order of the vhost files in sites-enabled is
    • 900-sample.com.vhost
    • 900-abc.sample.com.vhost

    Because of that order of course the catchall *.sample.com will also fetch the abc.sample.com which is not intended.

    Is it possible to re-arrange the order of the vhost files like having
    • 100-abc.sample.com.vhost
    • 900-sample.com.vhost
    ??

    Thank you
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    you have to set auto subdomain to 'none' instead of * in the site abc.sample.com
     
  3. elCorazon

    elCorazon New Member

    Thanks

    I see - so "none" is ordered into the 100-*.vhost files and "*" into the 900-*.vhost files. That actually does make some sense :)

    Thanks for the quick response.
     

Share This Page