You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marc <Ma...@f1-outsourcing.eu> on 2025/02/01 14:15:17 UTC
[users@httpd] proxy for www and without
How should I change this config so it works with www.a.com and a.com? I tried with trying to assign %{HTTP_HOST} to defaulthost
Define defaulthost "a.com"
Define proxyhost "b.com"
ProxyPreserveHost Off
ProxyAddHeaders On
SetOutputFilter proxy-html
ProxyHTMLEnable On
ProxyHTMLExtended On
ProxyPass "https://${proxyhost}/xxx"
ProxyPassReverse "https://${proxyhost}/xxx"
ProxyPassReverseCookieDomain "${proxyhost}" "${defaulthost}"
ProxyHTMLURLMap https://${proxyhost}/xxx https://${defaulthost}/en/yyyy
Re: [users@httpd] proxy for www and without
Posted by Cody Amen <co...@icloud.com.INVALID>.
I just had success installing Apache2 on a Macbook Pro.
I had to replace apr with updated source. And make --with-included-apr.
Cody Amen
(303) 918-6296
cody.amen@icloud.com
Sent from my iPhone
> On Feb 1, 2025, at 7:16 AM, Marc <Ma...@f1-outsourcing.eu> wrote:
>
> How should I change this config so it works with www.a.com and a.com? I tried with trying to assign %{HTTP_HOST} to defaulthost
>
>
> Define defaulthost "a.com"
> Define proxyhost "b.com"
>
> ProxyPreserveHost Off
> ProxyAddHeaders On
> SetOutputFilter proxy-html
> ProxyHTMLEnable On
> ProxyHTMLExtended On
>
> ProxyPass "https://${proxyhost}/xxx"
> ProxyPassReverse "https://${proxyhost}/xxx"
>
> ProxyPassReverseCookieDomain "${proxyhost}" "${defaulthost}"
>
> ProxyHTMLURLMap https://${proxyhost}/xxx https://${defaulthost}/en/yyyy
>
> B‹KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB•È[œÝXœØÜšX™KK[XZ[ˆ\Ù\œË][œÝXœØÜšX™P˜\XÚK›Ü™ÃB‘›ÜˆY][Û˜[ÛÛ[X[™ËK[XZ[ˆ\Ù\œËZ[˜\XÚK›Ü™ÃB
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org