From 2ce0fcf630e631655870cf3a2efce2ebe3fadb94 Mon Sep 17 00:00:00 2001
From: Jeff Trawick Hosts whose names match, or end in, this string are allowed
access. Only complete components are matched, so the above
- example will match In the following example, all hosts in the apache.org domain
+ In the following example, all hosts in the example.org domain
are allowed access; all other hosts are denied access. In the next example, all hosts in the apache.org domain are
+ In the next example, all hosts in the example.org domain are
allowed access, except for the hosts which are in the
- foo.apache.org subdomain, who are denied access. All hosts not
- in the apache.org domain are denied access because the default
+ foo.example.org subdomain, who are denied access. All hosts not
+ in the example.org domain are denied access because the default
state is to On the other hand, if the A (partial) domain-name Hosts whose names match, or end in, this string are allowed
access. Only complete components are matched, so the above
- example will match A hostname starting with a "*" matches all hostnames with
@@ -365,10 +365,10 @@ manager
hostnames containing the domain components that follow. The To distinguish Domains from
of hosts with different IPAddrs).
+ Allow from example.org
Allow from .net example.edu
foo.apache.org
but it will not
- match fooapache.org
. This configuration will cause
+ example will match foo.example.org
but it will not
+ match fooexample.org
. This configuration will cause
Apache httpd to perform a double DNS lookup on the client IP
address, regardless of the setting of the
Deny from all
- Allow from apache.org
+ Allow from example.org
- Allow from apache.org
- Deny from foo.apache.org
+ Allow from example.org
+ Deny from foo.example.org
Deny,Allow
, all hosts will
be allowed access. This happens because, regardless of the actual
ordering of the directives in the configuration file, the
- Allow from apache.org
will be evaluated last and will
- override the Deny from foo.apache.org
. All hosts not in
- the apache.org
domain will also be allowed access
+ Allow from example.org
will be evaluated last and will
+ override the Deny from foo.example.org
. All hosts not in
+ the example.org
domain will also be allowed access
because the default state is
+ Require host example.org
Require host .net example.edu
foo.apache.org
but it will not
- match fooapache.org
. This configuration will cause
+ example will match foo.example.org
but it will not
+ match fooexample.org
. This configuration will cause
Apache to perform a double reverse DNS lookup on the client IP
address, regardless of the setting of the
# Cache FTP-proxied url's
CacheEnable disk ftp://
- # Cache content from www.apache.org
- CacheEnable disk http://www.apache.org/
+ # Cache content from www.example.org
+ CacheEnable disk http://www.example.org/
- CacheEnable disk http://*apache.org/
- # Match www.apache.org, but not fooapache.org
- CacheEnable disk http://.apache.org/
+ # Match www.example.org, and fooexample.org
+ CacheEnable disk http://*example.org/
+ # Match www.example.org, but not fooexample.org
+ CacheEnable disk http://.example.org/
no-cache
environment variable can be set to
diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml
index 85e7776d9a..b8f127f5d5 100644
--- a/docs/manual/mod/mod_proxy.xml
+++ b/docs/manual/mod/mod_proxy.xml
@@ -1442,7 +1442,7 @@ directly
all ending in Domain).
- www.apache.org
+ prep.ai.example.edu
+ www.example.org
This will cause the site
environment variable
- to be set to "apache
" if the HTTP request header
+ to be set to "example
" if the HTTP request header
field Host:
was included and contained
- Apache.Org
, apache.org
, or any other
+ Example.Org
, example.org
, or any other
combination.
Network Domain. Enter the DNS domain in which
your server is or will be registered in. For example, if your
- server's full DNS name is server.mydomain.net
, you would
- type mydomain.net
here.
server.example.net
, you would
+ type example.net
here.
Server Name. Your server's full DNS name.
- From the example above, you would type server.mydomain.net
+ From the example above, you would type server.example.net
here.
Administrator's Email Address. Enter the
diff --git a/docs/manual/rewrite/flags.xml b/docs/manual/rewrite/flags.xml
index 482b8e90ae..c36978ebda 100644
--- a/docs/manual/rewrite/flags.xml
+++ b/docs/manual/rewrite/flags.xml
@@ -159,14 +159,14 @@ browsers that support this feature.
-RewriteRule ^/index\.html - [CO=frontdoor:yes:.apache.org:1440:/]
+RewriteRule ^/index\.html - [CO=frontdoor:yes:.example.com:1440:/]
In the example give, the rule doesn't rewrite the request.
The "-" rewrite target tells mod_rewrite to pass the request
through unchanged. Instead, it sets a cookie
called 'frontdoor' to a value of 'yes'. The cookie is valid for any host
-in the .apache.org
domain. It will be set to expire in 1440
+in the .example.com
domain. It will be set to expire in 1440
minutes (24 hours) and will be returned for all URIs.
In the following example, all hosts in the apache.org domain +
In the following example, all hosts in the example.org domain are allowed access; all other hosts are denied access.
NameVirtualHost 111.22.33.44 <VirtualHost 111.22.33.44> - ServerName www.customer-1.com - DocumentRoot /www/hosts/www.customer-1.com/docs - ScriptAlias /cgi-bin/ /www/hosts/www.customer-1.com/cgi-bin + ServerName customer-1.example.com + DocumentRoot /www/hosts/customer-1.example.com/docs + ScriptAlias /cgi-bin/ /www/hosts/customer-1.example.com/cgi-bin </VirtualHost> <VirtualHost 111.22.33.44> - ServerName www.customer-2.com - DocumentRoot /www/hosts/www.customer-2.com/docs - ScriptAlias /cgi-bin/ /www/hosts/www.customer-2.com/cgi-bin + ServerName customer-2.example.com + DocumentRoot /www/hosts/customer-2.example.com/docs + ScriptAlias /cgi-bin/ /www/hosts/customer-2.example.com/cgi-bin </VirtualHost> <VirtualHost 111.22.33.44> - ServerName www.customer-N.com - DocumentRoot /www/hosts/www.customer-N.com/docs - ScriptAlias /cgi-bin/ /www/hosts/www.customer-N.com/cgi-bin + ServerName customer-N.example.com + DocumentRoot /www/hosts/customer-N.example.com/docs + ScriptAlias /cgi-bin/ /www/hosts/customer-N.example.com/cgi-bin </VirtualHost>@@ -183,7 +183,7 @@ examples. ISP's web hosting server. Using
%2
,
we can select substrings of the server name to
use in the filename so that, for example, the documents for
- www.user.isp.com
are found in
+ www.user.example.com
are found in
/home/user/www
. It uses a single cgi-bin
directory instead of one per virtual host.
@@ -239,7 +239,7 @@ LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon