The mime-type tag has no wiki summary.
0
votes
1answer
65 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
0answers
32 views
file control with mime-type
I have a security question regarding the mime types.
I have a website on which users can upload videos. Prior to encoding with ffmpeg, I make a mime-type check to be sure the video file is really a ...
0
votes
2answers
98 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
147 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
112 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
0answers
179 views
Nginx javascript mime-type of application/x-javascript [closed]
Why does nginx by default serve javascript .js as mime-type application/x-javascript? I've noticed the two most popular standards seem to be: text/javascript and application/javascript.
What is the ...
0
votes
0answers
110 views
Inherited mime type in IIS
I added a MIME type on a Web site in IIS 6.1. After realizing that I would need it in several sites, I deleted it and added it to the root level. After doing that, I don't see it as inherited in the ...
0
votes
1answer
74 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 ...
0
votes
0answers
56 views
Using Shell32 to extract Mimes on Windows Server 2008
In a desktop app, I'm using Shell32 to extract Mime infos and ID3 tags.
I want to do the same in ASP.Net on server side with http posted files, plus fetch some other infos, but as a Windows Server ...
1
vote
2answers
234 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 ...
4
votes
1answer
471 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
705 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
152 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 - - ...
2
votes
3answers
5k 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
59 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
194 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
168 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
418 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
0answers
160 views
fresh installation of apache2 + incorrect mime types
I having issues with fresh installation of apache2 mime types for both css + javascript files
apache send them with mime text/plain
i have mod_mime enabled and i tried to work around with .htaccess
...
0
votes
1answer
381 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
107 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 ...
1
vote
2answers
663 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
830 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
299 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
282 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
358 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
486 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
733 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 ...
0
votes
1answer
715 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
270 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
151 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
3answers
688 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 ...
1
vote
2answers
630 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
868 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 ...
