From: Daniel Gruno Date: Thu, 26 Apr 2012 14:42:22 +0000 (+0000) Subject: syntax for misc/ and platform/ X-Git-Tag: 2.5.0-alpha~7013 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbe7712f755090d42e5d84d3d24b0624fdf61226;p=thirdparty%2Fapache%2Fhttpd.git syntax for misc/ and platform/ git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1330882 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/misc/security_tips.xml b/docs/manual/misc/security_tips.xml index ed605b172f1..efa1f8f7fda 100644 --- a/docs/manual/misc/security_tips.xml +++ b/docs/manual/misc/security_tips.xml @@ -328,9 +328,9 @@

In the server configuration file, put

- <Directory /> - AllowOverride None - </Directory> +<Directory /> + AllowOverride None +</Directory>

This prevents the use of .htaccess files in all @@ -359,10 +359,10 @@ configuration:

- <Directory /> - Order Deny,Allow - Deny from all - </Directory> +<Directory /> + Order Deny,Allow + Deny from all +</Directory>

This will forbid default access to filesystem locations. Add @@ -370,14 +370,14 @@ allow access only in those areas you wish. For example,

- <Directory /usr/users/*/public_html> - Order Deny,Allow - Allow from all - </Directory> - <Directory /usr/local/httpd> - Order Deny,Allow - Allow from all - </Directory> +<Directory /usr/users/*/public_html> + Order Deny,Allow + Allow from all +</Directory> +<Directory /usr/local/httpd> + Order Deny,Allow + Allow from all +</Directory>

Pay particular attention to the interactions of - <Files ".ht*"> - Order allow,deny - Deny from all - </Files> +<Files ".ht*"> + Order allow,deny + Deny from all +</Files> diff --git a/docs/manual/platform/windows.xml b/docs/manual/platform/windows.xml index c7cb1831179..44ce9c891dd 100644 --- a/docs/manual/platform/windows.xml +++ b/docs/manual/platform/windows.xml @@ -284,12 +284,12 @@ 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] -
+ +RewriteEngine On +RewriteMap lowercase int:tolower +RewriteCond %{REQUEST_URI} [A-Z] +RewriteRule (.*) ${lowercase:$1} [R,L] +
  • When running, Apache needs write access only to the logs directory and any configured cache directory tree. Due to the @@ -310,9 +310,9 @@ module, use the following (in addition to the status-activating directives in access.conf):

    - + LoadModule status_module modules/mod_status.so - +

    Information on creating loadable modules is also available.

  • @@ -782,19 +782,25 @@ on mapped drive letters, but this is not recommended.)

    Example DocumentRoot with UNC path + DocumentRoot //dochost/www/html/ + Example DocumentRoot with IP address in UNC path - DocumentRoot //192.168.1.50/docs/
    + + DocumentRoot //192.168.1.50/docs/ +
    Example Alias and corresponding Directory with UNC path - Alias /images/ //imagehost/www/images/
    -
    - <Directory //imagehost/www/images/>
    - ...
    - <Directory>
    + +Alias /images/ //imagehost/www/images/ + +<Directory //imagehost/www/images/> +#... +<Directory> +

    When running Apache httpd as a service, you must create a