Can anyone tell me how to set up Apache2 to serve application/xhtml+xml? There is supposed to be a mime-type file in the apache2 home folder, but it's not there.
Printable View
Can anyone tell me how to set up Apache2 to serve application/xhtml+xml? There is supposed to be a mime-type file in the apache2 home folder, but it's not there.
I was looking for the same information, here is my findings:
In the file: /etc/apache2/mods-available/mime.conf
you can add/override MIME types in the section "AddType"
however by default it tells Apache to load the mime types from /etc/mime.types
In Ubuntu server version 12.04 those mime types are already listed in /etc/mime.types as
application/xhtml+xml xhtml xht
application/xml xml xsl xsd
so they should be loaded by default.
fyi: I was looking for this information to add .dat and .pac, but they are also already in there.
application/x-ns-proxy-autoconfig pac dat
The problem that I had was the file permissions on the wpad.dat file in the apache directory /var/www
When I pointed my web browser at the file ( http://apachewebserver/wpad.dat ) it could not read it and got an error "Permission Denied".
Once I fixed the permissions on the file the browser was then able to read the file and prompted me to download or open with application.