From: Tony Finch
- $Revision: 1.4 $ ($Date: 1999/07/04 16:33:00 $)
+ $Revision: 1.5 $ ($Date: 2000/04/18 17:52:31 $)
The latest version of this FAQ is always available from the main
@@ -111,6 +111,9 @@
Apache Server Frequently Asked Questions
- Please see the - Apache + Please see the Apache Virtual Host documentation for further details about configuration.
+ Internet Explorer is ignoring the mime-type you have configured for + the file and guessing the file type based on the filename + extension. IE does this for any file which the web server marks as + application/octet-stream or text/plain. Netscape, on the other + hand, properly follows the directions of the web server and treats + the file as text/plain (displays it in the browser window as-is) or + application/octet-stream (pops up a download window). +
+
+ In order to make all browsers work correctly, you should assure
+ that Apache sends the correct mime type for the file. This is
+ accomplished by editing the mime.types
file or using
+ an AddType
+ directive in the Apache configuration files.
+
- $Revision: 1.2 $ ($Date: 1999/07/03 22:12:50 $) + $Revision: 1.3 $ ($Date: 2000/04/18 17:52:31 $)
The latest version of this FAQ is always available from the main @@ -102,6 +102,9 @@
+ Remember that CGI execution does not need to be restricted only to + cgi-bin directories. You can allow + cgi execution in arbitrary parts of your filesystem. +
++ There are many ways to give each user directory a cgi-bin directory + such that anything requested as + http://example.com/~user/cgi-bin/program will be + executed as a CGI program. + Two alternatives are: +
+
ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2
+ +
<Directory /home/*/public_html/cgi-bin>
+ Options ExecCGI
+ SetHandler cgi-script
+ </Directory>
+ - $Revision: 1.1 $ ($Date: 1999/06/24 15:02:52 $) + $Revision: 1.2 $ ($Date: 2000/04/18 17:52:31 $)
The latest version of this FAQ is always available from the main @@ -89,6 +89,9 @@
+ If the hostname under which you are accessing the server is
+ different than the hostname specified in the
+ ServerName
+ directive, then depending on the setting of the
+ UseCanonicalName
+ directive, Apache will redirect you to a new hostname when
+ constructing self-referential URLs. This happens, for example, in
+ the case where you request a directory without including the
+ trailing slash.
+
+ When this happens, Apache will ask for authentication once under the + original hostname, perform the redirect, and then ask again under the + new hostname. For security reasons, the browser must prompt again + for the password when the host name changes. +
++ To eliminate this problem you should +
ServerName
to match the name you are
+ using in the URL; and/or
+ UseCanonicalName off
.
+ - $Revision: 1.5 $ ($Date: 2000/02/11 22:11:33 $) + $Revision: 1.6 $ ($Date: 2000/04/18 17:52:32 $)
The latest version of this FAQ is always available from the main @@ -84,6 +84,9 @@
+ The maximum flexibility for removing unwanted information from
+ log files is obtained by post-processing the logs, or using
+ piped-logs to feed the logs through a program which does whatever
+ you want. However, Apache does offer the ability to prevent
+ requests from ever appearing in the log files. You can do this by
+ using the
+ SetEnvIf
+ directive to set an environment variable for certain requests and
+ then using the conditional
+ CustomLog
+ syntax to prevent logging when the environment variable is set.
+