The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
548 views

Nginx: How to serve different urls with different settings from one file?

I have thousands of text files named like ABC. I'd like to access those files from different URL: - if it is ABC or ABC.txt I'd like to add default_type text/plain and serve that file - if it is ...
1
vote
1answer
58 views

Mime type received as “text/html”, server configured to send as “text/javascript”

Both firefox and chrome are showing that javascript files from my server are served as MIME type text/html. The javascript files have a .js extension. First, mime_module is installed and active: ...
1
vote
1answer
103 views

Using mime_header_checks to ACCEPT instead of REJECT?

I'm pretty well versed in using header_checks/mime_header_checks to refuse smtp mail in Postfix, but now I think I've gone off the path of righteousness; I'm trying to suss out a way that I can refuse ...
1
vote
1answer
386 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
358 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
253 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
227 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
196 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
703 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: ...
1
vote
0answers
113 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
49 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 ...
1
vote
0answers
67 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
6 views

Specifying charset in HTTP header with Lighttpd

I'm trying to specify a charset in the HTTP header of my Lighttpd-setup. I've tried numerous suggestions I've found throughout StackExchange's websites. 1. Tried looking in the mime.types file, so I ...
0
votes
0answers
5 views

nginx how to override/add single mime-type

I tried to add markdown rendering by putting types { text/markdown md; } into server section, but then index.html stopped to be rendered all of a sudden. I can explain this only if types overrides ...
0
votes
0answers
17 views

Error Sending £ symbol through telnet message

I use the following command to send SMS messages through SMS Adapters: telnet localhost ${PORT} <<-EOF helo x MAIL FROM: Test RCPT TO: 447999999999 DATA Test £1234 . ...
0
votes
0answers
113 views

.webm IIS mime-type not found

I have problems with mp4 files in Chrome, so I decided to change to webm files. I've configured IIS mime-types for webm files in the web.config file: <?xml version="1.0" encoding="UTF-8"?> ...
0
votes
0answers
494 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
147 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 ...