WebFaction
Community site: login faq

Hi, for an assignment I have to set the MIME type based on the file extension. In my particular case it means to add these lines to .htaccess:

...
AddType audio/webm webma
AddType audio/wav wav
AddType video/mp4 mp4
AddType video/mp4 m4v
...

and so on.

I'm just wondering if I really need to do that. The question is, how can I know if the default httpd.conf for my Static/CGI/PHP-5.3 application already has these settings? I tried to find ~ -name httpd.conf to check its content but no relevant httpd.conf files have been found.

Hope I have been clear enough, thanks.

asked 25 Oct '11, 03:25

Guandalino
3711218
accept rate: 0%


Hi,

If you are using the shared Apache server (for example, with a Static/CGI/PHP app), you have no access to the configuration files (httpd.conf / mime.types). This is actually defined in the mime.types configuration file. The default MIME types that are defined for these extensions are:

webma - not defined
wav - audio/x-wav
mp4 - video/mp4
m4v - not defined

You can redefine them in a .htaccess file.

permanent link

answered 25 Oct '11, 03:32

todork
1.2k4
accept rate: 34%

Not even read only access?

(25 Oct '11, 03:37) Guandalino

Actually, yes, you do have read-only access. However, I'd ask you to open a ticket if you need this information, as I'm hesitant to post it publicly.

(25 Oct '11, 03:40) todork
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×225
×29
×28

question asked: 25 Oct '11, 03:25

question was seen: 3,656 times

last updated: 25 Oct '11, 03:40

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM