From: Joshua Slive Date: Sun, 20 Aug 2006 18:48:24 +0000 (+0000) Subject: Add a note about case-sensitivity to the windows platform docs. X-Git-Tag: 2.3.0~2152 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51a32c455163c877eaa7d01d28d95bbb2e78a4c3;p=apache Add a note about case-sensitivity to the windows platform docs. Partially in response to the disputed vulnerability: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-4110 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@433005 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/platform/windows.html.en b/docs/manual/platform/windows.html.en index 3a11c15173..852750ea56 100644 --- a/docs/manual/platform/windows.html.en +++ b/docs/manual/platform/windows.html.en @@ -227,6 +227,25 @@ not backslashes. Drive letters can be used; if omitted, the drive with the Apache executable will be assumed.

+
  • While filenames are generally case-insensitive on + Windows, URLs are still treated internally as case-sensitive + before they are mapped to the filesystem. For example, the + <Location>, + Alias, and ProxyPass directives all use + case-sensitive arguments. For this reason, it is particularly + important to use the <Directory> directive when attempting + to limit access to content in the filesystem, since this + directive applies to any content in a directory, regardless of + how it is accessed. If you wish to assure that only lowercase + is used in URLs, you can use something like:

    + +

    + RewriteEngine On
    + RewriteMap lowercase int:tolower
    + RewriteCond %{REQUEST_URI} [A-Z]
    + RewriteRule (.*) ${lowercase:$1} [R,L] +

  • +
  • Apache for Windows contains the ability to load modules at runtime, without recompiling the server. If Apache is compiled normally, it will install a number of optional modules in the diff --git a/docs/manual/platform/windows.xml b/docs/manual/platform/windows.xml index 8f581187d0..e549739c3b 100644 --- a/docs/manual/platform/windows.xml +++ b/docs/manual/platform/windows.xml @@ -225,6 +225,27 @@ not backslashes. Drive letters can be used; if omitted, the drive with the Apache executable will be assumed.

  • +
  • While filenames are generally case-insensitive on + Windows, URLs are still treated internally as case-sensitive + before they are mapped to the filesystem. For example, the + Location, + Alias, and ProxyPass directives all use + case-sensitive arguments. For this reason, it is particularly + important to use the Directory directive when attempting + to limit access to content in the filesystem, since this + directive applies to any content in a directory, regardless of + how it is accessed. If you wish to assure that only lowercase + is used in URLs, you can use something like:

    + + + RewriteEngine On
    + RewriteMap lowercase int:tolower
    + RewriteCond %{REQUEST_URI} [A-Z]
    + RewriteRule (.*) ${lowercase:$1} [R,L] +
  • +
  • Apache for Windows contains the ability to load modules at runtime, without recompiling the server. If Apache is compiled normally, it will install a number of optional modules in the