Click to See Complete Forum and Search --> : apache config prob.


littlebig
08-21-2001, 09:21 PM
I have set up a apache 1.3 and placed a binary file in DocumentRoot.
when I download the file from netscape, it display all the funny characters instead of asking me to save it. Any settings in the conf. file do i need to change?
thanks! :confused:

bdl
08-21-2001, 09:42 PM
Hmmm. Right off I'd say its a problem with your browser, not necessarily a problem with Apache. What browser are you running when you test this file?

littlebig
08-21-2001, 10:05 PM
i am using netscape to download the file.
but when i use the same browser to download the same file from another apache server it asks me to save it. I have take a look at the 2 conf files but cannot find the different. Any idea for me?

Cuthbert
08-23-2001, 02:10 PM
I seem to remember reading something you can do in the httpd.conf file to fix that. You can probably find it by looking through here:
http://httpd.apache.org/

Or just by browsing the httpd.conf file... they're usually pretty well commented.

Or you can hold down your shift key when you click on the link to download. :)

teeitup
08-23-2001, 07:17 PM
This is straight out of the default httpd.conf file in the /etc/apache directory.

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value. If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain


Good Luck,