WebFaction
Community site: login faq

I am using the Python mimetypes module. It failed to find the mimetype for '.pptx' which is in fact the newer format for Microsoft Powerpoint files so common as muck. It looks in lots of places:

mimetypes.knownfiles ['/etc/mime.types', '/etc/httpd/mime.types', '/etc/httpd/conf/mime.types', '/etc/apache /mime.types', '/etc/apache2/mime.types', '/usr/local/etc/httpd/conf/mime.types', '/usr/local/lib/netscape/mime.types', '/usr/local/etc/httpd/conf/mime.types', '/usr/local/etc/mime.types']

Where should it look? I can add my own place but if there is an updated location by Webfaction I would use that.

asked 27 Apr '12, 04:49

Peter Mott
17411
accept rate: 0%


Hi,

On our old (peruser) servers it's in /usr/local/apache2-mpm-peruser/conf/. On our newer servers it's in /etc/httpd/conf/.

I hope this helps!

permanent link

answered 27 Apr '12, 07:28

todork
1.2k5
accept rate: 34%

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:

×337
×226
×28
×1

question asked: 27 Apr '12, 04:49

question was seen: 2,831 times

last updated: 27 Apr '12, 07:28

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 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