I'm struggling to get apache2 to serve a file with the correct mime type. I'm using an installation of apache 2.2 installed with apt-get on Ubuntu.
The file in question is a maven repository file called
For some reason apache is insisting this is of type
Content-Type: application/xml This is clearly incorrect since the entire content of the file:
I can only assume this decision is being made by apache because of "xml" in the file name, but it makes no sense in context.
I've tried adding
text/plain but I still get the same result.
The full headers are:
HTTP/1.1 200 OK Date: Fri, 19 Dec 2014 22:58:30 GMT Server: Apache/2 Last-Modified: Thu, 18 Dec 2014 14:56:57 GMT ETag: "6e8e3cb-20-50a7ecdb68040" Accept-Ranges: bytes Content-Length: 32 Keep-Alive: timeout=30 Connection: Keep-Alive Content-Type: application/xml
Edit I think I may have missed an obvious step like restarting the server after adding