*
The moose likes Tomcat and the fly likes Mime type configuration apache server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Mime type configuration apache server" Watch "Mime type configuration apache server" New topic
Author

Mime type configuration apache server

lokesh devineni
Greenhorn

Joined: Oct 19, 2010
Posts: 5

Hi all,

This topic is mime type configuration in apache web server.Can any one know these question please reply back,

a) If we can set mime type for certain type of (like PDF) files when they are rendered from apache server?
b) Can we set the mime type for files from specific folder?
c) What is overhead of doing this?
d) Will this impact all the apps which use that apache server? or can we set it for specific app ?

Best Regards,
Lokesh.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15959
    
  19

MIME types are configured for apache in various ways, but if I'm not mistaken, for my particular server, the master configuration is a file named /etc/mime.types that is not only used by Apache, but by any other application in the OS that wants to apply MIME types.

You can customize the normal MIME type assignment at a per-folder level using .htaccess. There's also a mod_mime plugin that may help.

You should be able to find details in the apache documentation without too much trouble.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Mime type configuration apache server
 
Similar Threads
Configuring Tomcat 5 on Win2K and Linux
Mistakenly changed web.xml
warp conn prevents apache redirect
Mime Type configuration in apache
web.xml causes 404 error