Use this: ProxyPreserveHost On on both proxies.
From this link:
"When enabled, this option will pass the Host: line from the incoming request to the proxied host, instead of the hostname specified in the ProxyPass line.
This option should normally be turned Off. It is mostly useful in special configurations like proxied mass name-based virtual hosting, where the original Host header needs to be evaluated by the backend server."
ThatEdit: Ah, then you have chained proxies with a gateway! Then you should sufficealso use ProxyVia On directive setup on aws2, or maybe on both proxies. Try that.