Re: How to apply Apache directives to 'dynamic' HTML?

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

 



Chris G wrote:
On Wed, Oct 10, 2007 at 11:03:48PM +0930, Tim wrote:

On Wed, 2007-10-10 at 08:44 +0100, Chris G wrote:

By default on Fedora 7 the
apache httpd.conf file has:-
   AddDefaultCharset UTF-8
which sets UTF-8 for *everything* served by that apache installation

Unless countermanded...  I's only a "default."  I certainly get
different character sets if I do the trick where you play with
filenames.

e.g. testpage.html.iso88591 and I've set a directive so that file
suffixe has meaning.


OK, you can override it using apache directives (I assume that's what
you mean), but it (the AddDefaultCharset) overrides anything else set
by 'client' code as it were.


Hi Chris,

The default can be overridden. Here's another way. Let's assume the script's name is test and is in /var/www/cgi-bin:

<Directory /var/www/cgi-bin>
  <Files test>
    AddDefaultCharset	ISO-8859-1
  </Files>
</Directory>

Tested in Apache/2.2.6 (unix)

hth,
Mike Wright :m)

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux