• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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