We have 4 servers where tomcat is running

server1
server2
server3
server4


and what i want the normal request will serve by the load balanced server
via http or https
server1
server2
server3

but if any request coming to access /portal that should routed through mode
tpc with port 80 or 443 to server4


IS that making clear you or need more explanation


On Fri, Sep 18, 2015 at 7:11 AM, Jeff Palmer <[email protected]> wrote:

> Can you give us an example scenario?   Tell us the actual services you
> want to use on the frontends and backends.  and how you would envision
> your conditions to work?
>
>
>
> On Thu, Sep 17, 2015 at 9:39 PM, Nitesh Kumar Gupta
> <[email protected]> wrote:
> > But how it will be conditional
> > Mean suppose if I want anything that will access help that should go to
> TCP
> > rest should work with normal http or HTTPS
> > How can I configure this one
> >
> > On Sep 18, 2015 7:05 AM, "Jeff Palmer" <[email protected]> wrote:
> >>
> >> You can have haproxy listen in both http mode, and tcp mode.  You'll
> >> just need to setup multiple frontends.
> >>
> >>
> >> something like:
> >>
> >> frontend myhttpservice
> >>   bind *:80
> >>   mode http
> >>   ...
> >>
> >>
> >> frontend mytcpservice
> >>   bind *:3306
> >>   mode tcp
> >>   ...
> >>
> >>
> >>
> >> If I misunderstood the request,  please feel free to post again, and
> >> clarify what you are asking to have haproxy do.
> >>
> >>
> >>
> >> On Thu, Sep 17, 2015 at 9:13 PM, Nitesh Kumar Gupta
> >> <[email protected]> wrote:
> >> > Hi,
> >> >
> >> > I want to setup haproxy in way there that will work on both http and
> >> > https
> >> > and also tpc but that will be conditional mean if any perticular link
> >> > will
> >> > come that will go via tcp
> >> >
> >> > So can you help me how can i setup this
> >> >
> >> > --
> >> > Regards
> >> > Nitesh Kumar Gupta
> >>
> >>
> >>
> >> --
> >> Jeff Palmer
> >> https://PalmerIT.net
>
>
>
> --
> Jeff Palmer
> https://PalmerIT.net
>



-- 
Regards
Nitesh Kumar Gupta

Reply via email to