Hi folks,

Does anyone know how to get a redirect from the root domain to www
subdomain eg example.com to www.example.com ?

I have 2 servers, one that hosts www.example.com and should redirect from
example.com, and one for group.example.com .

I can get pound to resolve www.example.com and group.example.com but I
can't yet configure it to redirect from example.com to www.example.com on
the first server, 162.

Does anyone know how to do this?


Here's my current config:

        Service
                HeadRequire "^Host:.example\.com$"
                Redirect "http://www.example.com";
                BackEnd
                        Address 192.168.1.162
                        Port 8082
                End
        End


        Service
                HeadRequire "^Host:[ \t]*www\.example\.com$"
                BackEnd
                        Address 192.168.1.162
                        Port 8082
                End
        End


        Service
                HeadRequire "^Host:[ \t]*group\.example\.com$"
                BackEnd
                        Address 192.168.1.163
                        Port 8083
                End
        End


Any advice is appreciated.

Thanks,

Simon Jones

Reply via email to