| View previous topic :: View next topic |
| Author |
Message |
draude Administrator


Joined: 10 Dec 2002 Posts: 371 Location: San Francisco
|
Posted: Tue Dec 23, 2003 12:58 am Post subject: HOWTO: Setup Apache for OpenOffice.org MIME types |
|
|
This short HOWTO is intended for server administrators who want to make sure that OpenOffice.org files stored on their server are identified by their correct MIME types. This ensures that web browsers properly identify OpenOffice.org files and not confuse them for something else (i.e. text files). This Howto assumes you are using Apache for your web server.
To add OpenOffice.org MIME types to your server, you must edit Apache's httpd.conf file. This file is usually located in the directory /etc/httpd/conf.
Add the following lines to httpd.conf inside the <IfModule mod_mime.c> section:
| Code: | AddType application/vnd.sun.xml.writer .sxw
AddType application/vnd.sun.xml.writer.template .stw
AddType application/vnd.sun.xml.writer.global .sxg
AddType application/vnd.sun.xml.calc .sxc
AddType application/vnd.sun.xml.calc.template .stc
AddType application/vnd.sun.xml.impress .sxi
AddType application/vnd.sun.xml.impress.template .sti
AddType application/vnd.sun.xml.draw .sxd
AddType application/vnd.sun.xml.draw.template .std
AddType application/vnd.sun.xml.math .sxm |
Alternatively, you can add the following to your mime.types file (i.e. /etc/mime.types):
| Code: | application/vnd.sun.xml.writer sxw
application/vnd.sun.xml.writer.template stw
application/vnd.sun.xml.writer.global sxg
application/vnd.sun.xml.calc sxc
application/vnd.sun.xml.calc.template stc
application/vnd.sun.xml.impress sxi
application/vnd.sun.xml.impress.template sti
application/vnd.sun.xml.draw sxd
application/vnd.sun.xml.draw.template std
application/vnd.sun.xml.math sxm |
Then, restart apache. That should do it. |
|
| Back to top |
|
 |
joeljkp General User

Joined: 20 Feb 2003 Posts: 25
|
Posted: Mon Feb 23, 2004 1:27 pm Post subject: |
|
|
Actually... these can't be right. Internet media types are registered through IANA, and they have no record of the types above. Sure, they can be used, but it'd be a violation of a perfectly good standard.
See http://www.iana.org/assignments/media-types/application/ |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 4021 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
anterpa Newbie

Joined: 01 Apr 2008 Posts: 1
|
Posted: Tue Apr 01, 2008 2:07 am Post subject: Problem with MIME type and Apache 1.3.34 |
|
|
Hello,
I am having problems with the MIME type on Apache 1. Same file on a Apache 2 works perfectly.
When trying to download, the apache sends a ZIP File and not the odt.
I actually followed all instructions which I found on the net but still it doesn't work.
I followed the instructions on http://wiki.services.openoffice.org/wiki/Fr.openoffice.org/FAQ/Generale/036 and restarted the apache. Furthermore I added it in the mime.types but wasn't successful either.
Can anyone help me on this problem?
Thank you very much
Angie |
|
| Back to top |
|
 |
|