Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

change header fields in reverse proxy mode

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


khalilzadeh at aut

Mar 11, 2012, 11:32 AM

Post #1 of 3 (408 views)
Permalink
change header fields in reverse proxy mode

Dear users
Hi

For using mod_proxy I studied articles like below:
http://www.apachetutor.org/admin/reverseproxies
I have a problem that I could not find a solution for it. My web application checks referer field of HTTP packet and if referer differ from internal address of my application, it don't send any response to client. I searched for a module like mod_proxy_html that could change HTTP header fields just before mod_proxy. The only module i could find is mod_replace. Is there a better module?

Regards,
Ebrahim Khalilzadeh
--


DRuggeri at primary

Mar 11, 2012, 1:39 PM

Post #2 of 3 (394 views)
Permalink
Re: change header fields in reverse proxy mode [In reply to]

On 3/11/2012 1:32 PM, Ebrahim Khalilzadeh wrote:
> Dear users
> Hi
>
> For using mod_proxy I studied articles like below:
> http://www.apachetutor.org/admin/reverseproxies
> I have a problem that I could not find a solution for it. My web
> application checks referer field of HTTP packet and if referer differ
> from internal address of my application, it don't send any response to
> client. I searched for a module like mod_proxy_html that could change
> HTTP header fields just before mod_proxy. The only module i could find
> is mod_replace. Is there a better module?
>
> Regards,
> Ebrahim Khalilzadeh
> --
>

Hello;
mod_headers can process the incoming headers (add, edit, delete)
prior to them reaching mod_proxy. Use the RequestHeader directive to
make those kinds of changes. Note that there are some headers that
mod_proxy uses (like X-ForwardedFor) that you can not change.

--
Daniel Ruggeri


khalilzadeh at aut

Mar 11, 2012, 1:43 PM

Post #3 of 3 (390 views)
Permalink
Re: Re: change header fields in reverse proxy mode [In reply to]

Thanks Daniel


Daniel Ruggeri wrote:
> On 3/11/2012 1:32 PM, Ebrahim Khalilzadeh wrote: > Dear users
> Hi
>
> For using mod_proxy I studied articles like below:
> http://www.apachetutor.org/admin/reverseproxies
> I have a problem that I could not find a solution for it. My web application checks referer field of HTTP packet and if referer differ from internal address of my application, it don't send any response to client. I searched for a module like mod_proxy_html that could change HTTP header fields just before mod_proxy. The only module i could find is mod_replace. Is there a better module?
>
> Regards,
> Ebrahim Khalilzadeh
> --
>
>
Hello;
mod_headers can process the incoming headers (add, edit, delete) prior to them reaching mod_proxy. Use the RequestHeader directive to make those kinds of changes. Note that there are some headers that mod_proxy uses (like X-ForwardedFor) that you can not change.

-- Daniel Ruggeri
-- This email was Anti Virus checked by Astaro Security Gateway. http://www.astaro.com

--

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.