The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
1answer
895 views

IIS ignoring mime-type settings and serving file as application/octet-stream

We added both handlers and mime-types for IIS in the web.config to tell the server how to handle the different types of audio and video files we are using on the site. IIS does not seem to be ...
1
vote
1answer
529 views

css files are reported as text/plain by mimetype on ubuntu machine

When I run the following command mimetype -DM --database /usr/share/misc/magic /path/to/reset.css I expect to see text/css as a result but instead I get text/plain. Is there a way to fix this? ...
1
vote
1answer
415 views

Limit file upload per type with NGinx

On my project, I will allow users to send zip files and images files (on two different form post). The project is developed with Play! Framework (not PHP). I'd like to limit the size of upload for ...
0
votes
1answer
35 views

Content-Type not being set for jpg, but is being sent for png. How do I check Apache config?

This is weird. I have an image resizing script on my Apache server. It's outputting PNG files and JPG files. They display images fine in the browser. However, the Content-Type isn't being set for ...
0
votes
1answer
144 views

Error 404 or 500 when downloading large static JSON file in IIS 7

What I wanted to do was fairly simple you would think. Create static json file so browsers can cache output and you don't have to poll the database for large chunks of data. So I created a JSON file ...
0
votes
1answer
402 views

Apache reverse proxy AH01597: could not open mime types config file

I'm trying to configure Apache HTTP server 2.4 as a reverse proxy on RHEL 7 server. When Apache starts up it complains in its log file (/var/log/httpd/error_log): AH01597: could not open mime types ...
0
votes
1answer
503 views

Apache sometimes showing blank page

I am setting up an Ubuntu 12.04 server with a LAMP stack on a VPS for the very first time. My problem is that Apache refuses to show PHP pages I upload to the server, there's just a blank page. The ...
0
votes
1answer
214 views

file utility on linux does not give MIME type for certain m4v files

We're using the file utility on linux to determine the file MIME type (and this information we subsequently use), which seems to be failing on some m4v files, but not on others. Running ...
0
votes
1answer
882 views

Web server serves up PDF file as wrong mime type

Following an upgrade to the latest version of Joomla, downloads from a website I am working on are being served incorrectly. Example page: http://www.pacificpolicy.org/index.php?option=com_content&...
1
vote
0answers
89 views

MIME/Content type changed after change in server

This is my first question so I apologize if I my post has any mistakes. I've searched about this issue for close to two days now and I still only am a bit closer than I was before.Here is my problem. ...
1
vote
0answers
251 views

CentOS - Files to Copy to get Consistent MIME-type detection in PHP

I have the same website (written in PHP) running on two servers. I've tried uploading the same exact file to both servers through the website. On one of the servers, the file's mimetype is detected as ...
1
vote
0answers
54 views

IIS virtual folder mime types

Consider following scenario. I have physical folder with mp3 files. I want these files to be served with application/octet-stream mime when accessed via http://example.com/dl/foo.mp3 and with audio/...
1
vote
0answers
71 views

How to specify proper mime for javascript in apache?

I'm trying to set up mod_mime for javascript. My webserver returns this content-type for js files: Content-Type:application/x-javascript; charset=utf-8 so obviously the directive ExpiresByType ...
0
votes
0answers
25 views

Apache reverse proxy changes served content depending on mime type

We are running a setup with Apache reverse proxy (Apache/2.4.18 (Ubuntu)) on Ubuntu 16.04 that serves as a reverse proxy for several other Apaches running on the same machine on various other network ...
0
votes
0answers
15 views

.htaccess Conditional based on MIME Type?

I know I can add a conditional based on the extension of the file being requested like so: <FilesMatch "\.(html|htm|php)$"> # blah blah blah </FilesMatch> But is there some way I ...
0
votes
0answers
21 views

Lotus Domino HTTP: Define MIME types

My Lotus Domino 9.0 server serves the application cache manifest as application/octet-stream, where the browser expects text/cache-manifest. I only found examples how to add a MIME type to Apache and ...
0
votes
0answers
60 views

IIS 404 Not Found for only SOME resources…same permisions set

I am pretty stumped because IIS is returning 404 not found for a handful of resources, but not others. I checked the permissions to make sure they are set exactly the same way. The paths are also the ...
0
votes
0answers
835 views

NGINX downloads text file instead of displaying it

I have Nginx installed with the following nginx.conf: user nginx; worker_processes 1; error_log /var/log/nginx/error.log; pid /var/run/nginx.pid; events { ...
0
votes
0answers
269 views

Enable gzip for source maps

I'm using the Grunt plugins to concat, minify and generate source maps of my Javascript before I push it to the production server (I'll soon be doing the same with SASS for CSS). The source maps ...