Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
added 103 characters in body
Source Link
Marcel
  • 1.9k
  • 11
  • 16

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.

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."

That should suffice.

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."

Edit: Ah, then you have chained proxies with a gateway! Then you should also use ProxyVia On directive setup on aws2, or maybe on both proxies. Try that.

Source Link
Marcel
  • 1.9k
  • 11
  • 16

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."

That should suffice.