Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about jk connector and jpg files

 
david hu
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JkMount /test/*.jsp worker
JkMount /test/*.htm worker

I put the above line in the httpd conf file httpd.conf. The problem is that if in the htm file it refer a picture, say some jpg files. If these files have file extension as .jpg, the browser can correct render it inside the html page. If these files have file extension as .JPG, I mean, capitalized letters, the browser cannot render it inside the html page (basically I got a blank rectangle inside the html page). What i have to do to make it work is to put following line inside the httpd.conf
JkMount /test/*.JPG worker.

For lower case jgp file extension .jpg, I do not even have to put a corresponding line in the config file httpd.conf. These .JPG and .jpg files are under the same dir.

Can someone explain to me, Why?

Thanks

David
 
Surya Bharadwaj
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,
If you look up in the conf directory from your apache installation path, you will find a file 'mime.types.default'. There you can see the list of all mime types which are default. Obviously this JPG does not exist in the list. You cam try by adding 'JPG' to it.
Hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic