apache - Using ProxyPass with AWS ELB -
i have basic deployment works (roughly) so:
webserver elb -> webserver -> appserver elb -> appserver -> rds instances
.
- all requests webserver forwarded appserverelb on port 80.
- the appserverelb takes these requests , forwards them appserver instance.
virtualhost.conf
routes these requests appropriate port internally.
issues:
1. session stickiness lost. completely. proxypass
configured on webservers so:
proxypass /xyz http://elbdnsname/xyz proxypassreverse /xyz http://elbdnsname/xyz
and on application servers, virtualhost.conf
looks so:
<virtualhost *:80> jkmount /xyz* tomcat1 </virtualhost>
where tomcat1
in turn defined in workers.properties
.
- session stickiness maintained when appserverelb opened internet. threads on internet suggest because of
proxy protocol
, adds headers requests sent @ each stage. thus, appserverelb adds own header in turn causes request routed in endless loop.
questions:
1. proxypass
configuration above correct?
2. how elb not add header?
Comments
Post a Comment