开发者

where should i implement a "default redirect" in apache

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜