From: Christophe Jaillet Date: Thu, 10 Mar 2016 05:33:58 +0000 (+0000) Subject: Be more consistent in the way examples are formatted X-Git-Tag: 2.4.19~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6c5067bb3d33794c459529f527053e4093fb9a7;p=apache Be more consistent in the way examples are formatted Spotted by David Eisner in online doc + synch with trunk git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1734353 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/howto/access.xml b/docs/manual/howto/access.xml index 0769292d97..95fcfbb0f0 100644 --- a/docs/manual/howto/access.xml +++ b/docs/manual/howto/access.xml @@ -68,8 +68,8 @@

The usage of these directives is:

-Require host address -Require ip ip.address +Require host address +Require ip ip.address

In the first form, address is a fully qualified @@ -98,14 +98,16 @@ Require ip ip.address Require all granted Require not ip 10.252.46.165 </RequireAll> - +

Visitors coming from that address (10.252.46.165) will not be able to see the content covered by this directive. If, instead, you have a machine name, rather than an IP address, you can use that.

- Require not host host.example.com + +Require not host host.example.com +

And, if you'd like to block access from an entire domain, you can specify just part of an address or domain name:

@@ -172,7 +174,7 @@ Require expr %{HTTP_USER_AGENT} != 'BadBot' RewriteEngine On RewriteCond "%{TIME_HOUR}" ">=20" [OR] RewriteCond "%{TIME_HOUR}" "<07" -RewriteRule "^/fridge" "-" [F] +RewriteRule "^/fridge" "-" [F]

This will return a 403 Forbidden response for any request after 8pm @@ -203,4 +205,3 @@ RewriteRule "^/fridge" "-" [F] -