HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   vhost priority / ordering in sites-enabled (http://www.howtoforge.com/forums/showthread.php?t=62569)

elCorazon 17th July 2013 23:39

vhost priority / ordering in sites-enabled
 
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

till 18th July 2013 08:44

Quote:

Originally Posted by elCorazon (Post 299907)
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

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

elCorazon 18th July 2013 11:21

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.


All times are GMT +2. The time now is 19:11.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.