proxy for www and without

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux