Configuring MIME Types


AddType text/xml .xml .schema <Location /xml-schemas/> ForceType text/xml </Location>


As with content handlers, you can associate MIME types with specific file extensions or URLs. This example shows how to associate the text/xml MIME type with files ending in .xml and .schema and with all the content under the /xml-schemas/ URL. By default, Apache bundles a mime.types file that includes the most common MIME types and their associated extensions.




Apache(c) Phrase Book(c) Essential Code and Commands
Apache Phrasebook
ISBN: 0672328364
EAN: 2147483647
Year: 2006
Pages: 254

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net