httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Murch" <jmu...@cox.net>
Subject RE: [users@httpd] mod_headers mapping problem
Date Fri, 10 Aug 2007 17:54:40 GMT
Thanks Dragon.

What if I only want it remapped when the Content-Type is UTF-8?

Jeff



-----Original Message-----
From: Dragon [mailto:dragon@crimson-dragon.com] 
Sent: Friday, August 10, 2007 10:44 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] mod_headers mapping problem

Jeff Murch wrote:

>I am trying to map the following in my httpd.conf (for a reverse proxy):
>
>header unset "Content-Type: text/html;charset=utf-8"
>header add Content-Type "Content-Type: text/html;charset=iso-8859-1"
>
>As you can see I want to change the content type so that some of the
>characters render correctly. But the unset won't get rid of the old
>Content-Type header and the add won't add the new one.  Can anyone figure
>out what I am missing here? I have placed both directives at the very end
of
>my conf as well as other locations and it made no difference.
>
---------------- End original message. ---------------------

I think your syntax is wonky. I think you want:

Header unset Content-Type
Header add Content-Type "text/html;charset=iso-8859-1"


Dragon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.11.11/944 - Release Date: 8/9/2007
2:44 PM



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message