- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- httpd and MIME types
Operating System - Linux
1823384
Members
2605
Online
109654
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2006 07:18 PM
тАО04-11-2006 07:18 PM
I only found two MIME types in httpd.conf
1, AddType application/x-compress .Z
2, AddType application/x-gzip .gz .tgz
what about other MIME types ?
It means that apache only send MIME types to the client for those files that have .gz .tgz or .Z ?
Ok I can add other MIME types, but why only two MIME types are provided by-default ?
Regards
Maaz
1, AddType application/x-compress .Z
2, AddType application/x-gzip .gz .tgz
what about other MIME types ?
It means that apache only send MIME types to the client for those files that have .gz .tgz or .Z ?
Ok I can add other MIME types, but why only two MIME types are provided by-default ?
Regards
Maaz
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2006 11:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2006 12:25 AM
тАО04-12-2006 12:25 AM
Re: httpd and MIME types
Shalom Maaz,
These types are provided by default. They help browsing users browsers know what to do with the files when the httpd server delivers the files.
I do believe there are other MIME types provided with apache. You can add your own MIME types as well, though depending on the client browser configuration custom MIME types can be of limited usefulness.
http://httpd.apache.org
Contains more infomration on this issue.
SEP
These types are provided by default. They help browsing users browsers know what to do with the files when the httpd server delivers the files.
I do believe there are other MIME types provided with apache. You can add your own MIME types as well, though depending on the client browser configuration custom MIME types can be of limited usefulness.
http://httpd.apache.org
Contains more infomration on this issue.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2006 11:09 AM
тАО04-12-2006 11:09 AM
Re: httpd and MIME types
If you're running a RH based system, you'll already have something like these lines in '/etc/httpd/conf/httpd.conf':
LoadModule mime_magic_module modules/mod_mime_magic.so
#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type. The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
# MIMEMagicFile /usr/share/magic.mime
MIMEMagicFile conf/magic
Andyou'll also have the file '/etc/httpd/conf/magic' (which is a magic-mime file).
As you've already seen, you can add your own type's to supplement this list.
Please note that Apache works out the MIME type by the content of the file being served up, not just taking the person's word based on the extension.
The 'magic' file is of similar forat as the Magic files used for the 'file' utility, just configured to return MIME types instead of application names.
LoadModule mime_magic_module modules/mod_mime_magic.so
#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type. The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
# MIMEMagicFile /usr/share/magic.mime
MIMEMagicFile conf/magic
Andyou'll also have the file '/etc/httpd/conf/magic' (which is a magic-mime file).
As you've already seen, you can add your own type's to supplement this list.
Please note that Apache works out the MIME type by the content of the file being served up, not just taking the person's word based on the extension.
The 'magic' file is of similar forat as the Magic files used for the 'file' utility, just configured to return MIME types instead of application names.
One long-haired git at your service...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP