[erlang-questions] Serving PDF using Nitrogen/Inets
Fri Mar 9 16:46:56 CET 2012
Glad that helped.
Owner, Sigma Star Systems
On Mar 9, 2012 4:25 AM, "John Hughes" <> wrote:
> Thank you! Problem solved. That's a useful file to know about!
> -----Ursprungligt meddelande----- From: Jesse Gumm
> Sent: Wednesday, March 07, 2012 10:41 PM
> To: Garrett Smith
> Cc: John Hughes ;
> Subject: Re: [erlang-questions] Serving PDF using Nitrogen/Inets
> Hi John,
> In your nitrogen installation, check out /etc/inets_httpd.env, which
> defines a few common mimetypes for inets.
> On Wed, Mar 7, 2012 at 3:09 PM, Garrett Smith <> wrote:
>> On Wed, Mar 7, 2012 at 10:35 AM, John Hughes <>
>>> I’m having trouble serving static pdf files using nitrogen (running on
>>> for the time being). I think they’re being served with the wrong content
>>> type: my browser treats them as text and displays the PDF source;
>>> if I try to “save the page” then a .txt is appended to the file name (I’m
>>> running on Windows 7). This happens if I visit a URL such as
>>> http://localhost:8000/file.pdf in my browser (with nitrogen running on
>>> same machine).
>> When I use httpd/inets with modlib, I need to explicitly configure
>> MIME types, even for images, css, etc. I wonder if Nitrogen does the
>> same thing but has omitted pdf.
>> You're seeing other mime types come through? E.g. css -> text/css?
>> erlang-questions mailing list
> Jesse Gumm
> Owner, Sigma Star Systems
> 414.940.4866 || sigma-star.com || @jessegumm
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions