
humbedooh at apache
Apr 26, 2012, 7:42 AM
Post #1 of 1
(26 views)
Permalink
|
|
svn commit: r1330882 - in /httpd/httpd/trunk/docs/manual: misc/security_tips.xml platform/windows.xml
|
|
Author: humbedooh Date: Thu Apr 26 14:42:22 2012 New Revision: 1330882 URL: http://svn.apache.org/viewvc?rev=1330882&view=rev Log: syntax for misc/ and platform/ Modified: httpd/httpd/trunk/docs/manual/misc/security_tips.xml httpd/httpd/trunk/docs/manual/platform/windows.xml Modified: httpd/httpd/trunk/docs/manual/misc/security_tips.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/misc/security_tips.xml?rev=1330882&r1=1330881&r2=1330882&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/misc/security_tips.xml (original) +++ httpd/httpd/trunk/docs/manual/misc/security_tips.xml Thu Apr 26 14:42:22 2012 @@ -328,9 +328,9 @@ <p>In the server configuration file, put</p> <highlight language="config"> - <Directory /> - AllowOverride None - </Directory> +<Directory /> + AllowOverride None +</Directory> </highlight> <p>This prevents the use of <code>.htaccess</code> files in all @@ -359,10 +359,10 @@ configuration:</p> <highlight language="config"> - <Directory /> - Order Deny,Allow - Deny from all - </Directory> +<Directory /> + Order Deny,Allow + Deny from all +</Directory> </highlight> <p>This will forbid default access to filesystem locations. Add @@ -370,14 +370,14 @@ allow access only in those areas you wish. For example,</p> <highlight language="config"> - <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> </highlight> <p>Pay particular attention to the interactions of <directive @@ -437,10 +437,10 @@ file:</p> <highlight language="config"> - <Files ".ht*"> - Order allow,deny - Deny from all - </Files> +<Files ".ht*"> + Order allow,deny + Deny from all +</Files> </highlight> </section> Modified: httpd/httpd/trunk/docs/manual/platform/windows.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/platform/windows.xml?rev=1330882&r1=1330881&r2=1330882&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/platform/windows.xml (original) +++ httpd/httpd/trunk/docs/manual/platform/windows.xml Thu Apr 26 14:42:22 2012 @@ -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:</p> - <example> - RewriteEngine On<br /> - RewriteMap lowercase int:tolower<br /> - RewriteCond %{REQUEST_URI} [A-Z]<br /> - RewriteRule (.*) ${lowercase:$1} [R,L] - </example></li> + <highlight language="config"> +RewriteEngine On +RewriteMap lowercase int:tolower +RewriteCond %{REQUEST_URI} [A-Z] +RewriteRule (.*) ${lowercase:$1} [R,L] + </highlight></li> <li><p>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 <code>access.conf</code>):</p> - <example> + <highlight language="config"> LoadModule status_module modules/mod_status.so - </example> + </highlight> <p>Information on <a href="../mod/mod_so.html#creating">creating loadable modules</a> is also available.</p></li> @@ -782,19 +782,25 @@ on mapped drive letters, but this is not recommended.)</p> <example><title>Example DocumentRoot with UNC path</title> + <highlight language="config"> DocumentRoot //dochost/www/html/ + </highlight> </example> <example><title>Example DocumentRoot with IP address in UNC path</title> - DocumentRoot //192.168.1.50/docs/<br /> + <highlight language="config"> + DocumentRoot //192.168.1.50/docs/ + </highlight> </example> <example><title>Example Alias and corresponding Directory with UNC path</title> - Alias /images/ //imagehost/www/images/<br /> - <br /> - <Directory //imagehost/www/images/><br /> - ...<br /> - <Directory><br /> + <highlight language="config"> +Alias /images/ //imagehost/www/images/ + +<Directory //imagehost/www/images/> +#... +<Directory> + </highlight> </example> <p>When running Apache httpd as a service, you must create a
|