The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
16 views

Apache returning incorrect mime type for meta-data.xml.md5

I'm struggling to get apache2 to serve a file with the correct mime type. I'm using an installation of apache 2.2 installed with apt-get on Ubuntu. The file in question is a maven repository file ...
2
votes
3answers
43 views

How to serve giziped text files with nginx

To save space we gzip all our logs and text files and these files are browsed by the user, but these files are downloaded instead of opened in the browser, I couldn't find a way to set mime-type ...
0
votes
1answer
19 views

GIF loses mime type with Apache rewrite

Got problem with a gif that loses it's animation with the rewrites I'm doing. RewriteRule ^journal/(.+)\.(jpeg|jpg|png|mp4|webm|ogv)$ app/uploads/journal/$1 [QSA,L] RewriteRule ^journal/(.+)\.(gif)$ ...
0
votes
0answers
53 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"?> ...
1
vote
0answers
55 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 ...
0
votes
0answers
298 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
1answer
194 views

How to correct the MIME type from being recognized as text/x-asm to text/css?

The styles.css file is not loading on my web page, and I am hosting on Amazon S3. It appears that my styles.css file is being recognized as text/x-asm instead of text/css as stated in my index.html ...
0
votes
0answers
317 views

Nginx + php-fpm + Zend Opcache + php 5.3.10 - Dynamic Generated CSS|JS

I have the Zend Opcache pecl extension working almost completely- except for that I have 4 files that technically are content-types of css and js - but are "php" files and get sent through fastcgi and ...
1
vote
1answer
81 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 ...
0
votes
0answers
117 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 ...
0
votes
1answer
125 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
104 views

SVG doesn't work on subdomain - some browsers try to download rather than display

I have a site with a 'development' subdomain, which displays my SVG file exactly as intended. However when I copy it across to www, or any other subdomain (e.g. 'test') some browsers try to open the ...
1
vote
2answers
175 views

How to set different mod_mime rules for reverse proxy?

By default, httpd contains the following configuration: <IfModule mime_module> # # TypesConfig points to the file containing the list of mappings from # filename extension to ...
1
vote
1answer
277 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
0answers
47 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
1answer
316 views

Nginx: serving files as text without having .txt appended to it

I have some .rb (Ruby script) files that I link to on my website. By default, the browser just downloads them to the "Downloads" folder, as it does zip files. I want the browser to treat it as text, ...
0
votes
2answers
255 views

Create Exception on Mime filtering on squid

I have a server with the operating system Ubuntu 12:04 LTS version. I also paired the squid version 3.1.19 on my server. with the client about 30 units. to prevent my clients to download any files ...
0
votes
1answer
129 views

How Nginx can open all ASP files as text/html?

I've a lot of files with ASP extension running on linux, but I can't rename. The content of that files is HTML, but when I open, the Nginx takes me to download. Does anyone know what I can insert on ...
1
vote
1answer
54 views

Remove unrecognised staticContent mimeMap entries

On a default installation of IIS there are approximately 350 <mimeMap /> elements specified in the <staticContent> section. Some file extensions seem alien to me e.g. .sv4cpio, .cpio, ...
0
votes
2answers
149 views

How does lighttpd/nginx determine filetype of a file? (which method?)

I want to configure my lighttpd to serve some static files, with compression capability. The files are plain text but they have .bin extension. I have these lines in my lighttpd configuration: ...
0
votes
1answer
420 views

Subversion: Wrong global-ignores / can't see mime-types

I'm currently testing Subversion on a Server. As you can see in my config file below, I did following edits: A: I added global ignores: global-ignores = *thumb.db *.tmp B: I enabled auto-props ...
0
votes
2answers
367 views

Wrong mime-type for css and js files

I am new to Apache. I have almost no knowledge of apache. I am using apache 2.2.11. I have one css file and multiple .js files which i am uploading to a remote storage with a php page(PHP - 5.2.8). ...
0
votes
2answers
462 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 ...
0
votes
1answer
908 views

xdg-mime returns “xprop: unable to open display '' ”

I'm attempting to track down a problem with a particular CSS file being returned as text/html instead of text/css. file -mime install.css returns some less useful info: install.css: text/x-c; ...
0
votes
1answer
118 views

IIS7 403 for custom mime type

I have added in a custom mime type (epub) as "application/epub" into IIS7. This was working originally but something seems to have stopped it working and now we get the response "403 Forbidden: body ...
1
vote
2answers
700 views

Cannot load IMG without specifying extension

I just moved to a new server. All my site is including images without extensions. () but the new server doesn't seem to recognize this files unless I add each file's extension which I don't know so I ...
7
votes
1answer
1k views

Can I alias all directory requests to a single file in nginx?

I'm trying to figure out how to take all requests made to a particular directory and return a json string without a redirect, in nginx. Example: curl -i http://example.com/api/call1/ Expected ...
0
votes
1answer
2k views

NGINX MIME TYPE

I have my nginx conf file so that when ever a mobile device visits my site the url gets rewritten to m.mysite.com I did it by adding the following set $mobile_rewrite do_not_perform; if ...
4
votes
1answer
590 views

Insert MIME type of an URL into Apache's access_log

I would like to enhance my logfile with an additional field containing the mime type. E.G. 127.0.0.1 - - [01/Mar/2012:20:49:36 +0100] "GET / HTTP/1.1" 200 255 [...] "text/html" 127.0.0.1 - - ...
7
votes
3answers
17k views

How can I make sure that Nginx serves plaintext files as a download, instead of inline?

I have Rails application (Redmine) which works with Nginx. If I am clicking on any attachment my browser (firefox, ie, chrome) ask me to download file. But if I am clicking on txt-type attachment my ...
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 ...
1
vote
1answer
333 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
234 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
1k views

Mime types get removed by iisreset

I am trying to deploy a Silverlight app to iis on a Win 2003 server. I add the mime type for silverlight to iis ( .xap, application/x-silverlight-app ) and then restart the app pool, and the app ...
0
votes
1answer
772 views

Lighttpd doesn't read mime-type from files without an extension

I have a folder with images that I need to be lightweight hosted. So I decided to go for lighttpd. So I read that I had to add the following option in the config file: mimetype.use-xattr = "enable" ...
0
votes
1answer
191 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 ...
4
votes
3answers
2k views

How can I define a mime type in nginx for tar.bz2 or tar.gz files?

I tried adding these lines to mime.types: application/x-gtar tar.gz tgz tar.bz2 tbz2 tbz; application/x-bzip2 bz2; application/x-gzip gz; But nginx reports "Content-Type: application/x-bzip2" for ...
1
vote
2answers
2k views

IIS: Request with unknown content-type denied

I have an IIS7.5 box running an asp.net mvc 3 application. The application receives binary POST requests and returns a binary answer. To distinguish this binary data from all other packets I setup my ...
0
votes
1answer
352 views

How to make IIS7 recognize specific file extensions?

I'm attempting to embed .mp4 and .webm video files in a webpage and IIS doesn't appear to be recognizing the file extensions. I read that I needed to add the MIME types for each extension in IIS. I ...
0
votes
1answer
807 views

What MIME type should I put for Windows shortcut file (.URL)

If I want to have a Windows shortcut file (foo.URL) to be saved for the users, what MIME type should I assign for it? Default text/plain causes Windows to suggest it to be saved with .txt added as ...
0
votes
1answer
532 views

Virtual servers not serving .css files properly, issuing 302 response and forwarding to 404 error page

I've got 3 virtualhost directives, and they each host .php and .html files without any problem. However, 2 of them don't seem to be serving .css files correctly. When I check the header response I get ...
0
votes
1answer
672 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: ...
3
votes
2answers
1k views

nginx, x-accel-redirect and mime types

In my nginx 0.8.34 setup I'm using the X-Accel-Redirect feature to control file downloads in the application code while not having the application handle the download itself. After much pain this now ...
1
vote
1answer
1k views

Adding a new IIS Mime Type without doing an IIS Reset?

I have to add a new mime type to an IIS 6.0 web server. The client would like this done ASAP as it currently isn't serving .flv files. However, the server is used for other clients and I would like ...
2
votes
1answer
490 views

Apache treating files with “.var[.]” in their names as type-maps

So today at work I ran into a strange problem. An application I was writing had a JavaScript file named form.sales.var.js, placed in the same directory as other JS files. However, when the browser ...
0
votes
1answer
169 views

Mapping new file type to IIS and 404 before passing off the request

I'm mapping new file types in IIS 6 to the ASP.NET processor; for example the .gif image type. IIS will see a GIF image doesn't not exist (e.g. http://www.example.com/NoExist.GIF ) and raise a 404 ...
0
votes
2answers
986 views

Apache is sending php files to my browser instead of parsing

I have to set up PHP on an existing web host. I have made a virtual host entry, but for some reason Apache is sending the PHP to the browser instead of parsing.. from googling around it looks like ...
2
votes
2answers
2k views

Change type of all .xml file in a SVN repository

How can I change the type of all the files in a repository SVN who have the extension .xml from the type binary to the type text. It means, is no more necessary to change the type of each file, one ...
0
votes
1answer
1k views

How do you configure the mime_content_type() function to work correctly in php5?

I have a ubuntu 9.04 desktop that i'm using for my development machine with apache2 installed. What are the steps that I need to go through to ensure that the mime types for files are determined ...