Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Making httpd(8) deliver files as plain text?

Well, a little work with tcpdump shows that httpd(8) is doing the right thing without any special configuration. It is firefox that doesn't do the right thing. It simply says "This is a binary file" and forces me to save to disk.

I've looked in ff's preferences, but it doesn't allow me to update the list of "applications" and their associated file types.

FWIW, epiphany works correctly.

On Tue, 11 Oct 2011, Eric Haszlakiewicz wrote:

On Mon, Oct 10, 2011 at 05:05:21PM -0700, Paul Goyette wrote:
I'm trying to make httpd(8) deliver *.log as plain text, so my browser
doesn't treat the files as binary.  I've added

        -M .log text/plain - -

to my inetd.conf file (and HUPed inetd) but it doesn't seem to work.

I know I must be missing something obvious.  (BTW, an example in the
httpd(8) man page would probably be helpful!)

Just a guess, but maybe just "log" instead of ".log"?



| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at |
| Kernel Developer |                          | pgoyette at  |

Home | Main Index | Thread Index | Old Index