Hi denis,
this seems to look like it I will give it a try :)
Im fairly new to this subject so sorry if I asked a simple question but
as far as searching on the net goes most of the time I end up with a
load balancing example :)
regards
MArkus
Am 26.04.2017 um 11:01 schrieb Denis Fondras:
I dont want loadbalancing here! I need to seperate the hosting of the domain
to diffrent machines because of som software that is running on one of the
machines but is not needed on the other one.
Something like that ?
# cat /etc/relayd.conf
ext_addr="185.xxx.xxx.xxx"
table <myapp> { 192.168.1.31 }
table <myapp2> { 192.168.1.21 }
http protocol "httpsproxy" {
match request quick header "Host" value "app.mydomain.fr" forward to <myapp>
match request quick header "Host" value "app2-0.mydomain.fr" forward to
<myapp2>
match request quick header "Host" value "www.mydomain.fr" forward to <myapp2>
match request quick header "Host" value "app2-1.mydomain.fr" forward to
<myapp2>
}
relay "proxy" {
listen on $ext_addr port 443 tls
protocol "httpsproxy"
forward with tls to <myapp2> port 443
forward with tls to <myapp> port 443
}
--
Markus Rosjat fon: +49 351 8107223 mail: [email protected]
G+H Webservice GbR Gorzolla, Herrmann
Königsbrücker Str. 70, 01099 Dresden
http://www.ghweb.de
fon: +49 351 8107220 fax: +49 351 8107227
Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before
you print it, think about your responsibility and commitment to the
ENVIRONMENT