• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Mime Types

M

MaRiOs

Guest
I have a prob with a website i uploaded on plesk server.

When I press to some link which uses java to pop up a bigger photograph,all I see is text characters..i think it may be the source of the jpeg files..so i think it may be mime error.

I've looked into : /etc/httpd/conf/httpd.conf
and I see this

If your server contains mostly text or HTML documents, "text/plain" is
# a good value. If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain


So should I change it ? or is it dangerous to do changes in the conf file ?
 
You sure you didnt upload the images in ASCII instead of binary before you go making any changes?
 
Pretty sure...
Cause if i use the link to the jpg file ti works fine.
But I if i press to the link which uses javascript then they open as code...
 
I've just noticed that this happens only in firefox.

In internet explorer the pictures open fine.
 
And you have checked the Firefox Tools, Options, WebFeatures and checkmarked the Load images, Java, Javascript options, right? I am assuming you have the latest Firefox 1.04?

If you PM me a link, I can try it from my side, standard Firefox 1.04 (en-us) to see if it's something just with your Firefox install or not.
 
Problem solved.....

The problem occured in Firefox and Mozilla while i was watching the website using the Preview option of plesk,
and with the preview the url uses ssl (https)
so if I run the site with normal http:// the pictures work pefect both in mozilla and iexplorer....

Crazy stuff!!!!
 
Back
Top