wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Mime Type configuration in apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Mime Type configuration in apache" Watch "Mime Type configuration in apache" New topic
Author

Mime Type configuration in apache

lokesh devineni
Greenhorn

Joined: Oct 19, 2010
Posts: 5


Hi all,

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,
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1282

Hello!

a) If we can set mime type for certain type of (like PDF) files when they are rendered from apache server?

The files are just delivered to client by Apache httpd. A file is then rendered or displayed by the client which is usually your browser.
b) Can we set the mime type for files from specific folder?

Not that I'd know. This doesn't make much sense anyway because files and not directories have a specific mime type. Why would you want to configure it based on directories?
You should have a look at the Apache httpd documentation for details. A good start would be the mod_mime module.
c) What is overhead of doing this?

Really not much. This is is the typical work of a web server because each HTTP reply with a body should define a content type header anyway. Moreover Apache httpd used to deliver static content like simple files scales very well. So you could easily build a cluster of multiple machines if one machine really can't handle the load.
d) Will this impact all the apps which use that apache server? or can we set it for specific app ?

In general the server configuration affects all kinds of clients because they are all just HTTP clients from the server's point of view.

Marco

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mime Type configuration in apache