LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Pound configuration (https://www.linuxquestions.org/questions/linux-networking-3/pound-configuration-4175512087/)

linuxiel 07-23-2014 08:37 PM

Pound configuration
 
Hi Guys any help would be good. Im having a problem with a pound configuration

I have 3 sites running in the backend on 2 servers.

My problem is I can't seem to get pound to redirect by hostname properly for one of the domains

if I go to site1.com no problem
If I got to site2.com.au, no problem
If I go to site2.com it goes to site1 ??

My config:

Code:

ListenHTTP
        Address 0.0.0.0
        Port    80

        ## allow rpc
        xHTTP 4

        Service
                HeadRequire "Host: *.*site1.com.au.*"
                BackEnd
                        Address 192.168.0.20
                        Port    80
                End
        End

        Service
                HeadRequire "Host: *.*site2.com.au.*"
                Backend
                      Address 192.168.0.50
                      Port    80
                End
        End


        Service
                HeadRequire "Host: *.*site2.com.*"
                Backend
                      Address 192.168.0.50
                      Port    80
                End
        End

       
End


linuxiel 09-16-2014 06:01 PM

Well I finally figured it out so I though I would update this for anyone interested.

It was a ( extremely frustrating ) DNS Issue. Site2.com DNS was pointing to site1.com.au because they are hosted on the same IP.
For some reason ( a TCP/IP expert might be able to explain ) even though it resolved the IP address, somewhere in the headers ( im guessing ) it put site1 not site2.

My DNS provider did not even have an option to check or change this because of their screwy system so I changed the nameservers to my own and hosted site2 myself.

Then added the ip rather than site1 to resolve its DNS and hey presto.


All times are GMT -5. The time now is 01:55 AM.