OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

HOWTO: Setup Apache for OpenOffice.org MIME types

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> Setup and Troubleshooting
View previous topic :: View next topic  
Author Message
draude
Administrator
Administrator


Joined: 10 Dec 2002
Posts: 371
Location: San Francisco

PostPosted: Tue Dec 23, 2003 12:58 am    Post subject: HOWTO: Setup Apache for OpenOffice.org MIME types Reply with quote

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
View user's profile Send private message Visit poster's website
joeljkp
General User
General User


Joined: 20 Feb 2003
Posts: 25

PostPosted: Mon Feb 23, 2004 1:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 4021
Location: Lawrence, Kansas, USA

PostPosted: Mon Aug 09, 2004 8:17 am    Post subject: Reply with quote

See new proposed MIME types for OOo 2.0 in this spec.....

http://specs.openoffice.org/appwide/fileIO/FileFormatNames.sxw

The spec was presented here....
http://www.oooforum.org/forum/viewtopic.php?p=44550#44550

Cross reference....
http://www.oooforum.org/forum/viewtopic.php?p=44555#44555
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
anterpa
Newbie
Newbie


Joined: 01 Apr 2008
Posts: 1

PostPosted: Tue Apr 01, 2008 2:07 am    Post subject: Problem with MIME type and Apache 1.3.34 Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> Setup and Troubleshooting All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group