[users@httpd] RE [users@httpd] ProxyPass/ProxyPassReverse switch from http to https on redirect? (Apache 2.2.0)

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

 



. in addition to the LogLevel "Debug"

you can use a RewriteRule in Conjunction with ProxyPreserveHost on instead of a ProxyPass/ProxyPassReverse combination 
So instead of
  ProxyPass         /b-end/ http://backend/
  ProxyPassReverse  /b-end/ http://backend/
use
  RewriteRule       ^/b-end/(.*)$  http://backend/$1 [P,L]
  ProxyPreserveHost On
Than turn on "RewriteLog logs/fe-rewrite.log" and "RewriteLogLevel 9"

bye

Oliver


-----Ursprüngliche Nachricht-----
Von: Kresimir Peharda [mailto:kpeharda@xxxxxxxxx]
Gesendet: Mo 13.02.2006 20:33
An: users@xxxxxxxxxxxxxxxx
Betreff: Re: [users@httpd] RE [users@httpd] ProxyPass/ProxyPassReverse switch from http to https on redirect? (Apache 2.2.0)
 
> Only to make a ProxyPassReverse is not enough to make https
> Do you have in your httpd.conf at least Lines like this ?
> SSLEngine On
> SSLProxyEngine On
> Listen fe:443

Yes, I do have lines like this. However, based on the reponses from the Apache
proxy, the browser never initiates a https session. Reverse proxy directive
somehow looses the "s" in https.

Here is how I understand it.

1. ProxyPass /b-end/ http://backend/ - this one forwards my requests to
/frontend/b-end/ to http://backend/

2. ProxyPassReverse /b-end/ http://backend/ - this one forwards replies on
requests from #1 to my browser. Now, the reply says that I should use https
rather than http, namely, "backend" returns 302 Found - https://backend/, so I
tried the following rule, so the browser would try
http://frontend/secure-b-end/:

3. ProxyPassReverse /secure-b-end/ https://backend/ - however, my browser
receives it as - Location: http(where-to-hell-is-"s"?)://frontend/secure-b-end/
and, of course, goes to port 80, not 443.

Why is that?

/Kresimir


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


<<winmail.dat>>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-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