Can apache do this ?resolve file/image extension automatically

Discussion in 'Apache' started by deepakd, Mar 22, 2010.

  1. #1
    here is the problem I am trying to solve:

    Apache 2.2 acting as a static image server only.
    Now, I have images stored in file system in two formats: with and without extension.
    My clients would ask for images with or without extension for example:: http//giveme.com/image or http//giveme.com/image.png

    How can apache successfully serve images in this scenario ?
     
    deepakd, Mar 22, 2010 IP
  2. sacx13

    sacx13 Active Member

    Messages:
    438
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #2
    your should force the mime type to be returned as image/jpeg or whatever ... and you should solve this problem

    Regards
     
    sacx13, Mar 30, 2010 IP
  3. Axcell

    Axcell Active Member

    Messages:
    128
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    #3
    You can use PHP header for image output.
     
    Axcell, Apr 1, 2010 IP