Re: [users@httpd] ProxyPassReverse rewrites Location header where it should not

2017-11-30 Thread Luca Toscano
Hi Vlad, 2017-11-29 20:54 GMT+01:00 Vlad Liapko : > I have below config, non essential stuff removed > > ProxyPassReverse http://backendhost.com > ProxyPassReverse / > > > It happens that backend sends Location header already correctly pointing > to the front end, no need to rewrite, like this

[users@httpd] ProxyPassReverse rewrites Location header where it should not

2017-11-29 Thread Vlad Liapko
I have below config, non essential stuff removed ProxyPassReverse http://backendhost.com ProxyPassReverse / It happens that backend sends Location header already correctly pointing to the front end, no need to rewrite, like this Location:https://frontendhost.com/test/ Apache directive ProxyPas

Re: [users@httpd] ProxyPassReverse not changing the protocol part (https to http) of the redirect url

2013-08-28 Thread Amit Singla
I don't really need. it is just i need to do this in dev for some reasons. On Tue, Aug 27, 2013 at 9:59 AM, Shanti Suresh wrote: > Hi Amit, > > Why would you like to reverse proxy to an HTTPS backend and then serve the > results back over HTTP? Usually, when one does an HTTP to HTTPS, there i

Re: [users@httpd] ProxyPassReverse not changing the protocol part (https to http) of the redirect url

2013-08-27 Thread Shanti Suresh
Hi Amit, Why would you like to reverse proxy to an HTTPS backend and then serve the results back over HTTP? Usually, when one does an HTTP to HTTPS, there is authentication involved, followed by secure session-related information. Thanks, -Shanti On Tue, Aug 27, 20

Re: [users@httpd] ProxyPassReverse not changing the protocol part (https to http) of the redirect url

2013-08-27 Thread Igor Cicimov
On 25/08/2013 5:23 AM, "Amit Singla" wrote: > > I need to proxy http requests to https server in the backend. Everything is working except a minor issues in redirects URLs. ProxyPassReverse translates the the URL except the protocol i.e. does not translate https from backend server to http protoco

[users@httpd] ProxyPassReverse not changing the protocol part (https to http) of the redirect url

2013-08-24 Thread Amit Singla
I need to proxy http requests to https server in the backend. Everything is working except a minor issues in redirects URLs. ProxyPassReverse translates the the URL except the protocol i.e. does not translate https from backend server to http protocol. *Version: Apache/2.2.15* * * Below is the con

Re: [users@httpd] ProxyPassReverse using rewrite to go BACK to SSL?

2013-02-05 Thread Dave Shevett
On 2/5/13 1:16 PM, Nick Kew wrote: On 5 Feb 2013, at 17:31, Dave Shevett wrote: However, my problem is I want to rewrite the protocol side of the URL, not just the path. I need to change it from 'http' to 'https'. Sounds like you're looking for "Header edit" (mod_headers). I actually tried Hea

Re: [users@httpd] ProxyPassReverse using rewrite to go BACK to SSL?

2013-02-05 Thread Nick Kew
On 5 Feb 2013, at 17:31, Dave Shevett wrote: >>> However, my problem is I want to rewrite the protocol side of the URL, not >>> just the path. I need to change it from 'http' to 'https'. >> Sounds like you're looking for "Header edit" (mod_headers). > I actually tried Header edit as well - but

Re: [users@httpd] ProxyPassReverse using rewrite to go BACK to SSL?

2013-02-05 Thread Dave Shevett
On 2/5/13 12:16 PM, Nick Kew wrote: On 5 Feb 2013, at 14:40, Dave Shevett wrote: Hi folks, I've come a long way understanding how ProxyPassReverse is supposed to work, and in many ways it's doing exactly what I want it to do - it rewrites the URLs on returning redirects to match a specific pa

Re: [users@httpd] ProxyPassReverse using rewrite to go BACK to SSL?

2013-02-05 Thread Nick Kew
On 5 Feb 2013, at 14:40, Dave Shevett wrote: > Hi folks, I've come a long way understanding how ProxyPassReverse is supposed > to work, and in many ways it's doing exactly what I want it to do - it > rewrites the URLs on returning redirects to match a specific pattern. > > However, my problem

[users@httpd] ProxyPassReverse using rewrite to go BACK to SSL?

2013-02-05 Thread Dave Shevett
Hi folks, I've come a long way understanding how ProxyPassReverse is supposed to work, and in many ways it's doing exactly what I want it to do - it rewrites the URLs on returning redirects to match a specific pattern. However, my problem is I want to rewrite the protocol side of the URL, not

Re: [users@httpd] ProxyPassReverse

2012-10-20 Thread Daniel Ruggeri
On 10/17/2012 7:32 AM, Eric Covener wrote: > Sometimes headers have a URL in them. If your backend puts its own URL > in a header, Apache can replace it with the frontend URL. Exactly - ProxyPassReverse fixes Location headers sent by a backend during a redirect. It replaces the part matched with t

Re: [users@httpd] ProxyPassReverse

2012-10-17 Thread Eric Covener
On Wed, Oct 17, 2012 at 8:21 AM, wrote: > Is it possible for you to elaborate on this .. I m too naive for this.. > Excuse this if i sounds silly > > Thanks, > Vicky Sometimes headers have a URL in them. If your backend puts its own URL in a header, Apache can replace it with the frontend URL.

Re: [users@httpd] ProxyPassReverse

2012-10-17 Thread vicky007aggarwal
Is it possible for you to elaborate on this .. I m too naive for this.. Excuse this if i sounds silly Thanks, Vicky On Oct 17, 2012, at 4:32 PM, Eric Covener wrote: > On Wed, Oct 17, 2012 at 12:26 AM, wrote: >> All, >> >> I have very basic query, pls help me in understand that.. What is t

Re: [users@httpd] ProxyPassReverse

2012-10-17 Thread Eric Covener
On Wed, Oct 17, 2012 at 12:26 AM, wrote: > All, > > I have very basic query, pls help me in understand that.. What is the purpose > of using ProxyPassReverse in apache config..what i understand is that it > rewrite the headers but that means what?? > > Can someone give any use case/real time ex

[users@httpd] ProxyPassReverse

2012-10-16 Thread vicky007aggarwal
All, I have very basic query, pls help me in understand that.. What is the purpose of using ProxyPassReverse in apache config..what i understand is that it rewrite the headers but that means what?? Can someone give any use case/real time example which will help me in understanding the crux of

Re: [users@httpd] ProxyPassReverse Issue in Apache 2.2.3/CentOS, but works in Apache 2.2.14/Ubuntu [only directory redirect issue]

2012-02-13 Thread Hridayesh Gupta
It is not working only in Apache 2.2.4/CentOS. It is working in Apache 2.2.14/Ubuntu Just wanted to know if its bug or problem in my config. If its bug, how can I know. On Mon, Feb 13, 2012 at 9:46 PM, Hridayesh Gupta wrote: > Thanks for the reply. > > Actually my requirement is more complex and

Re: [users@httpd] ProxyPassReverse Issue in Apache 2.2.3/CentOS, but works in Apache 2.2.14/Ubuntu [only directory redirect issue]

2012-02-13 Thread Hridayesh Gupta
Thanks for the reply. Actually my requirement is more complex and it needs dynamic proxying based on mapping from mysql db. Thats why I used RewriteRule and RewriteMap. One silly thing was not working so i tried this simple config to test the problem. Based on ProxyPassReverse rules I have specif

Re: [users@httpd] ProxyPassReverse Issue in Apache 2.2.3/CentOS, but works in Apache 2.2.14/Ubuntu [only directory redirect issue]

2012-02-13 Thread Tom Evans
On Mon, Feb 13, 2012 at 11:35 AM, Hridayesh Gupta wrote: > I have the following rule in conf file at server.com > > RewriteEngine On > RewriteRule /source(.*) http://example.com/target$1 [P] > ProxyRequests Off > ProxyPassReverse /source http://example.com/target > > http://example.com/target/a.ph

[users@httpd] ProxyPassReverse Issue in Apache 2.2.3/CentOS, but works in Apache 2.2.14/Ubuntu [only directory redirect issue]

2012-02-13 Thread Hridayesh Gupta
I have the following rule in conf file at server.com RewriteEngine On RewriteRule /source(.*) http://example.com/target$1 [P] ProxyRequests Off ProxyPassReverse /source http://example.com/target http://example.com/target/a.php redirects to http://example.com/target/b.php http://example.com/target

RE: [users@httpd] ProxyPassReverse in context

2005-06-09 Thread Axel-Stéphane SMORGRAV
Well, if you have a fix, you've got yourself a customer... I've got time to patch, recompile and test. -ascs -Original Message- From: Nick Kew [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 1:03 AM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] ProxyPassReverse in c

Re: [users@httpd] ProxyPassReverse in context

2005-06-08 Thread Nick Kew
Axel-Stéphane SMORGRAV wrote: > Given the following reverse proxy configuration; > > > ProxyPass http://appserver/ > ProxyPassReverse http://appserver/ > > > > ProxyPass http://appserver/ > ProxyPassRevers

Re: [users@httpd] ProxyPassReverse in context

2005-06-08 Thread Joshua Slive
On 6/8/05, Axel-Stéphane SMORGRAV <[EMAIL PROTECTED]> wrote: > whenever http://appserver/ (the backend server) returns a redirection (302), > I want the Location header to be rewritten and prefixed with either /first/ > or /last/ depending on the URL that the reverse proxy was invoked with. >

[users@httpd] ProxyPassReverse in context

2005-06-08 Thread Axel-Stéphane SMORGRAV
Given the following reverse proxy configuration; ProxyPass http://appserver/ ProxyPassReverse http://appserver/ ProxyPass http://appserver/ ProxyPassReverse http://appserver/ whenever http://apps