Re: ProxyPreserveHost On

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

 




One more bit.

Why I don't get a secure connection on the browser? I type https://mysite.com and get redirected to http://mysite.com

In my scenario, for the backend application, I have to use in the ssl.conf the set "ProxyPreserveHost On"

NameVirtualHost mysite.com:443
<VirtualHost mysite.com:443>
ServerName mysite.com
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://10.19.72.127:8080/
ProxyHTMLURLMap http://10.19.72.127:8080 /
<Location />
        ProxyPassReverse http://10.19.72.127:8080/
        ProxyHTMLEnable On
        ProxyHTMLURLMap  /      /
        RequestHeader    unset  Accept-Encoding
</Location>

Many thanks for any suggest.
Cheers,
Mauri





2010/4/22 Mauri <lain80@xxxxxxxxx>
Hi experts,

this is my scenario:  https://miosito.com --> mod_proxy --> http://10.19.72.100:8080/ (tomcat)

httpd conf:

NameVirtualHost mysite.com:443
<VirtualHost mysite.com:443>
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://10.19.72.100:8080/
ProxyHTMLURLMap http://10.19.72.100:8080 /
<Location />
        ProxyPassReverse http://10.19.72.100:8080/
        ProxyHTMLEnable On
        ProxyHTMLURLMap  /      /
        RequestHeader    unset  Accept-Encoding
</Location>
[SSL directive...]

When I digit
https://mysite.com it becomes http://mysite.com because I think that hte proxypass is http...
It's wrong, I want that the URL will be https://mysite.com but I can use the ProxyPreserveHost (one backend application need to this set).

any idea?
many thanks, as usual.

Cheers,
Mauri


[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