The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache1.3 recognizes an image file (gif, png, jpe?g) to be a jpg file.

Discussion in 'EasyApache' started by PondRicefied, Feb 9, 2006.

  1. PondRicefied

    PondRicefied Well-Known Member

    Joined:
    Dec 13, 2004
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    Apache1.3 recognizes the image file (gif, png, jpe?g) of the account which made Tomcat5.5.9 available to be a jpg file.

    I put a xxx.gif file on /home/user/public_html.
    If http://domain.com/xxx.gif is accessed from a browser, "Not Found.The requested URL/adf.jpg was not found on this server" will be shown.

    This symptom is only the account with available Tomcat.

    Why???

    Please HELP (; ;)


    httpd.conf ----------------------------
    AddType image/gif .gif
    AddType image/ief .ief
    AddType image/jpeg .jpeg .jpg .jpe
    AddType image/png .png
    ...
    <VirtualHost xxx.xxx.xxx.xxx>
    ...
    <IfModule mod_jk.c>
    JkMount /*.jsp ajp13
    JkMount /servlet/* ajp13
    JkMount /servlets/* ajp13
    </IfModule>
    </VirtualHost>
    ----------------------------------------

    web.xml (global)----------------------
    ...
    <mime-mapping>
    <extension>gif</extension>
    <mime-type>image/gif</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jpe</extension>
    <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jpeg</extension>
    <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jpg</extension>
    <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>png</extension>
    <mime-type>image/png</mime-type>
    </mime-mapping>
    ...
    -----------------------------------
     
  2. PondRicefied

    PondRicefied Well-Known Member

    Joined:
    Dec 13, 2004
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    This was solved.

    I made a very stupid mistake. :eek:
     

Share This Page