Currently i have 3 separate vhost files default,staging,a开发者_如何学Cnd devel. I want www.example.com and example.com to use the default vhost. I want staging.example.com to use the staging vhost. Heres where the problem im having is; i want anything else ex. anything.example.com or else.example.com to use the devel vhost. what is the best way to accomplish this?
The first host Apache reads will be the default one.
I would therefore recommend inserting the default one on httpd.conf
as this file is read first and then load up all VHosts
as you wish.
精彩评论