Cyclone
Cyclone

Reputation: 18295

mod_rewrite P flag sets X-Forwarded-For?

Does the Proxy flag in mod_rewrite set the X-Forwarded-For header? If not, is there any way to set this header prior to doing the redirect?

Thanks for your help!

Upvotes: 2

Views: 1033

Answers (1)

Pekka
Pekka

Reputation: 449525

I have no practical experience with it, but according to Wikipedia's article on X-Forwarded-For, Apache's mod_proxy (which handles the P flag) does set the header.

The mod_proxy docs themselves seem silent on the issue.

Upvotes: 2

Related Questions