You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Watanabe, Yu" <yu...@jp.fujitsu.com> on 2013/07/02 11:02:44 UTC

[users@httpd] RE: Modifying Location header with mod_headers

Sorry . My 2nd configuration supposed to be ,

Header always edit Location ^http://localhost:8000 http://hoge.localhost


From: Watanabe, Yu [mailto:yu.watanabe@jp.fujitsu.com]
Sent: Tuesday, July 02, 2013 5:56 PM
To: users@httpd.apache.org
Subject: [users@httpd] Modifying Location header with mod_headers

Hi!

I would like to ask question regarding to mod_headers.

We have following environment deployed on linux box.

RHEL 5.8 32 bit
Httpd-2.2.22

I am trying to modify the “Location” header in the response header.
However, Location header is not changed.
I want to change as following,

From

Location: http://localhost:8000

To

Location: http://hoge.localhost

I have tried following patterns but none of seems to work.

Header always edit Location localhost hoge.localhost

And

Header always edit Location ^http://localhost:8000 hoge.localhost

Can someone give me a helping hand with the grammer?

Thanks,
Yu