RE: Using mod_headers to modify an existing header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I tried  "Header edit Location ^http:// https://"; but it isn't making
the changes. I also tried the following:

Header always edit Location ^http:// https://
Header always edit Location http:// https://

My location header is still being returned as http not https. I am using
Apache 2.2.4 so I have the edit option. Any other thoughts?

Thanks,

Kevin

-----Original Message-----
From: Nick Kew [mailto:nick@xxxxxxxxxxxx] 
Sent: Tuesday, July 17, 2007 7:12 AM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  Using mod_headers to modify an existing
header

On Mon, 16 Jul 2007 22:11:28 -0400
"Joshua Slive" <joshua@xxxxxxxx> wrote:

> I doubt that mod_headers is going to be able to modify Location.

Header edit Location ^http:// https://

(haven't checked gotchas with that)

> However, although I haven't tried it, you might be able to fix this
> with the (unfortunately undocumented) Protocol directive:
> 
> ServerName host1.domain.com:443
> Protocol https
> UseCanonicalName On

If these are server-generated Location headers, that is indeed
preferable.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux