From: Tony Finch Date: Tue, 18 Apr 2000 17:52:32 +0000 (+0000) Subject: More FAQs and answers from comp.infosystems.www.servers.unix. X-Git-Tag: apache-doc-split-01~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4db624f8b9ffd9b1971c0539dc84ccf2a589072;p=thirdparty%2Fapache%2Fhttpd.git More FAQs and answers from comp.infosystems.www.servers.unix. Submitted by: Joshua Slive Reviewed by: Tony Finch git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84991 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/misc/FAQ-E.html b/docs/manual/misc/FAQ-E.html index b0ef556ec44..5ed9b2ecc27 100644 --- a/docs/manual/misc/FAQ-E.html +++ b/docs/manual/misc/FAQ-E.html @@ -31,7 +31,7 @@

Apache Server Frequently Asked Questions

- $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 @@

  • Why do I get a "Forbidden" message whenever I try to access a particular directory? +
  • Why do my files appear correctly in + Internet Explorer, but show up as source or trigger a save + window with Netscape?
  • @@ -520,8 +523,7 @@ directives so Apache can be sure to tell them apart correctly.

    - Please see the - Apache + Please see the Apache Virtual Host documentation for further details about configuration.


    @@ -586,6 +588,28 @@ web server in order for the content to be accessible.


    + +
  • + Why do my files appear correctly in Internet + Explorer, but show up as source or trigger a save window + with Netscape? +

    + 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. +

    +
  • diff --git a/docs/manual/misc/FAQ-F.html b/docs/manual/misc/FAQ-F.html index a4442a481e9..7f2d5f298f5 100644 --- a/docs/manual/misc/FAQ-F.html +++ b/docs/manual/misc/FAQ-F.html @@ -31,7 +31,7 @@

    Apache Server Frequently Asked Questions

    - $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 @@

  • Why is the environment variable REMOTE_USER not set?
  • +
  • How do I allow each of my user directories + to have a cgi-bin directory? +
  • @@ -512,6 +515,42 @@


    +
  • How do I allow each of my user directories + to have a cgi-bin directory? +

    + 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: +

      +
    1. Place the cgi-bin directory next to the public_html directory: +

      +

      +
      ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2 +
      +
      +

      +
    2. +
    3. Place the cgi-bin directory underneath the public_html directory: +

      +

      +
      <Directory /home/*/public_html/cgi-bin>
      + Options ExecCGI
      + SetHandler cgi-script
      + </Directory>
      +
      +
      +

      +
    4. +
    +
    +
  • diff --git a/docs/manual/misc/FAQ-G.html b/docs/manual/misc/FAQ-G.html index 4461ff424fe..e17e5e853b8 100644 --- a/docs/manual/misc/FAQ-G.html +++ b/docs/manual/misc/FAQ-G.html @@ -31,7 +31,7 @@

    Apache Server Frequently Asked Questions

    - $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 @@

  • Can I use my /etc/passwd file for Web page authentication?
  • +
  • Why does Apache ask for my password + twice before serving a file? +
  • @@ -360,6 +363,37 @@


    +
  • Why does Apache ask for my password + twice before serving a file? +

    + 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 +

      +
    1. Always use the trailing slash when requesting directories; +
    2. Change the ServerName to match the name you are + using in the URL; and/or +
    3. Set UseCanonicalName off. +
    +

    +
    +
  • + diff --git a/docs/manual/misc/FAQ-I.html b/docs/manual/misc/FAQ-I.html index f5c8976d817..d2e49ae9cfa 100644 --- a/docs/manual/misc/FAQ-I.html +++ b/docs/manual/misc/FAQ-I.html @@ -31,7 +31,7 @@

    Apache Server Frequently Asked Questions

    - $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 @@

  • How can I rotate my log files?
  • +
  • How do I keep certain requests from + appearing in my logs? +
  • @@ -227,6 +230,25 @@


    +
  • + How do I keep certain requests from appearing + in my logs? +

    + 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. +

    +
    +
  • +