You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Rose, John B" <jb...@utk.edu> on 2016/01/22 21:40:18 UTC
[users@httpd] proxying content to another server
Is there a way to proxy content to another server via htaccess?
After experimenting with this ...
https://httpd.apache.org/docs/trunk/rewrite/proxy.html
We found ProxyPassReverse cannot reside in an htaccess file
Thanks
Re: [users@httpd] proxying content to another server
Posted by "Rose, John B" <jb...@utk.edu>.
Is there any reason this would not work in Apache 2.0?
RequestHeader set always HOST="whatever.com"
From: John Rose <jb...@utk.edu>>
Reply-To: "users@httpd.apache.org<ma...@httpd.apache.org>" <us...@httpd.apache.org>>
Date: Tuesday, January 26, 2016 11:07 AM
To: "users@httpd.apache.org<ma...@httpd.apache.org>" <us...@httpd.apache.org>>
Subject: Re: [users@httpd] proxying content to another server
It seems to be working ...
RequestHeader set always HOST="whatever.com"
Thanks Daniel and Eric
From: Daniel <df...@gmail.com>>
Reply-To: "users@httpd.apache.org<ma...@httpd.apache.org>" <us...@httpd.apache.org>>
Date: Tuesday, January 26, 2016 6:59 AM
To: "users@httpd.apache.org<ma...@httpd.apache.org>" <us...@httpd.apache.org>>
Subject: Re: [users@httpd] proxying content to another server
Try with "always" Requestheader always...
El lun., 25 de ene. de 2016 19:36, Rose, John B <jb...@utk.edu>> escribió:
We tried this, but does not seem to be working. We do have mod_header
installed and loaded Š
RequestHeader set Host "www.newurl.com<http://www.newurl.com>"
Is something else required?
Thanks
On 1/22/16 3:50 PM, "Eric Covener" <co...@gmail.com>> wrote:
>On Fri, Jan 22, 2016 at 3:40 PM, Rose, John B <jb...@utk.edu>> wrote:
>> We found ProxyPassReverse cannot reside in an htaccess file
>
>You can probably accomplish similar in htaccess with Header always
>edit Location ...
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org<ma...@httpd.apache.org>
>For additional commands, e-mail: users-help@httpd.apache.org<ma...@httpd.apache.org>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org<ma...@httpd.apache.org>
For additional commands, e-mail: users-help@httpd.apache.org<ma...@httpd.apache.org>
Re: [users@httpd] proxying content to another server
Posted by "Rose, John B" <jb...@utk.edu>.
It seems to be working ...
RequestHeader set always HOST="whatever.com"
Thanks Daniel and Eric
From: Daniel <df...@gmail.com>>
Reply-To: "users@httpd.apache.org<ma...@httpd.apache.org>" <us...@httpd.apache.org>>
Date: Tuesday, January 26, 2016 6:59 AM
To: "users@httpd.apache.org<ma...@httpd.apache.org>" <us...@httpd.apache.org>>
Subject: Re: [users@httpd] proxying content to another server
Try with "always" Requestheader always...
El lun., 25 de ene. de 2016 19:36, Rose, John B <jb...@utk.edu>> escribió:
We tried this, but does not seem to be working. We do have mod_header
installed and loaded Š
RequestHeader set Host "www.newurl.com<http://www.newurl.com>"
Is something else required?
Thanks
On 1/22/16 3:50 PM, "Eric Covener" <co...@gmail.com>> wrote:
>On Fri, Jan 22, 2016 at 3:40 PM, Rose, John B <jb...@utk.edu>> wrote:
>> We found ProxyPassReverse cannot reside in an htaccess file
>
>You can probably accomplish similar in htaccess with Header always
>edit Location ...
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org<ma...@httpd.apache.org>
>For additional commands, e-mail: users-help@httpd.apache.org<ma...@httpd.apache.org>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org<ma...@httpd.apache.org>
For additional commands, e-mail: users-help@httpd.apache.org<ma...@httpd.apache.org>
Re: [users@httpd] proxying content to another server
Posted by Daniel <df...@gmail.com>.
Try with "always" Requestheader always...
El lun., 25 de ene. de 2016 19:36, Rose, John B <jb...@utk.edu> escribió:
> We tried this, but does not seem to be working. We do have mod_header
> installed and loaded Š
>
> RequestHeader set Host "www.newurl.com"
>
>
> Is something else required?
>
> Thanks
>
>
> On 1/22/16 3:50 PM, "Eric Covener" <co...@gmail.com> wrote:
>
> >On Fri, Jan 22, 2016 at 3:40 PM, Rose, John B <jb...@utk.edu> wrote:
> >> We found ProxyPassReverse cannot reside in an htaccess file
> >
> >You can probably accomplish similar in htaccess with Header always
> >edit Location ...
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] proxying content to another server
Posted by "Rose, John B" <jb...@utk.edu>.
We tried this, but does not seem to be working. We do have mod_header
installed and loaded Š
RequestHeader set Host "www.newurl.com"
Is something else required?
Thanks
On 1/22/16 3:50 PM, "Eric Covener" <co...@gmail.com> wrote:
>On Fri, Jan 22, 2016 at 3:40 PM, Rose, John B <jb...@utk.edu> wrote:
>> We found ProxyPassReverse cannot reside in an htaccess file
>
>You can probably accomplish similar in htaccess with Header always
>edit Location ...
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] proxying content to another server
Posted by Eric Covener <co...@gmail.com>.
On Fri, Jan 22, 2016 at 3:58 PM, Rose, John B <jb...@utk.edu> wrote:
> Just removing "ProxyPassReverse" seems to work. What should removing it
> impact?
The Location header in redirects from the backend won't have the frontend
host/port/path substituted on their way out
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] proxying content to another server
Posted by "Rose, John B" <jb...@utk.edu>.
"Header always edit Location"?
Not clear what that means.
Just removing "ProxyPassReverse" seems to work. What should removing it
impact?
On 1/22/16 3:50 PM, "Eric Covener" <co...@gmail.com> wrote:
>On Fri, Jan 22, 2016 at 3:40 PM, Rose, John B <jb...@utk.edu> wrote:
>> We found ProxyPassReverse cannot reside in an htaccess file
>
>You can probably accomplish similar in htaccess with Header always
>edit Location ...
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] proxying content to another server
Posted by Eric Covener <co...@gmail.com>.
On Fri, Jan 22, 2016 at 3:40 PM, Rose, John B <jb...@utk.edu> wrote:
> We found ProxyPassReverse cannot reside in an htaccess file
You can probably accomplish similar in htaccess with Header always
edit Location ...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org