Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    156
    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>
    ...
    -----------------------------------
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. PondRicefied

    PondRicefied Well-Known Member

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

    I made a very stupid mistake. :eek:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice