From: Takashi Sato
The above example will redirect a request for
http://example.com/~bob/abc.html
to
- http://www.foo.com/users/bob/abc.html
.
http://example.org/users/bob/abc.html
.
in your Access Log. This means
diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml
index eb7d3b3e44d..3d2ec40e85c 100644
--- a/docs/manual/mod/core.xml
+++ b/docs/manual/mod/core.xml
@@ -1963,7 +1963,7 @@ URLs
functionality is especially useful when combined with the
foo.com
, you might use:
example.com
, you might use:
If no quoted text is present, the name of the link will be used as the text:
If you want to use double quotes within this text, you have to
@@ -243,11 +243,11 @@
base referer
poly map "Could I have a menu, please?" 0,0 0,10 10,10 10,0
rect .. 0,0 77,27 "the directory of the referer"
- circle http://www.inetnebr.com/lincoln/feedback/ 195,0 305,27
+ circle http://www.inetnebr.example.com/lincoln/feedback/ 195,0 305,27
rect another_file "in same directory as referer" 306,0 419,27
- point http://www.zyzzyva.com/ 100,100
- point http://www.tripod.com/ 200,200
- rect mailto:nate@tripod.com 100,150 200,0 "Bugs?"
+ point http://www.zyzzyva.example.com/ 100,100
+ point http://www.tripod.example.com/ 200,200
+ rect mailto:nate@tripod.example.com 100,150 200,0 "Bugs?"
In the last example, the proxy will forward FTP requests, encapsulated
@@ -1162,8 +1162,8 @@ directly
The host arguments to the Domain name comparisons are done without regard to the case, and
Domains are always assumed to be anchored in the root of the
- DNS tree, therefore two domains .MyDomain.com
and
- .mydomain.com.
(note the trailing period) are considered
+ DNS tree, therefore two domains .ExAmple.com
and
+ .example.com.
(note the trailing period) are considered
equal. Since a domain comparison does not involve a DNS lookup, it is much
more efficient than subnet comparison.
Hostname comparisons are done without regard to the case,
and Hostnames are always assumed to be anchored in the root
- of the DNS tree, therefore two hosts WWW.MyDomain.com
- and www.mydomain.com.
(note the trailing period) are
+ of the DNS tree, therefore two hosts WWW.ExAmple.com
+ and www.example.com.
(note the trailing period) are
considered equal.
To enable load balancer management for browsers from the foo.com +
To enable load balancer management for browsers from the example.com
domain add this code to your httpd.conf
configuration file
object_is_image
if the request was for an image
file, and the fourth sets intra_site_referral
if
the referring page was somewhere on the
- www.mydomain.com
Web site.
+ www.mydomain.example.com
Web site.
The last example will set environment variable
To enable status reports only for browsers from the foo.com
+ To enable status reports only for browsers from the example.com
domain add this code to your HAVE_TS
if the request contains any headers that
diff --git a/docs/manual/mod/mod_status.xml b/docs/manual/mod/mod_status.xml
index 7aa546bd734..99c68412781 100644
--- a/docs/manual/mod/mod_status.xml
+++ b/docs/manual/mod/mod_status.xml
@@ -72,7 +72,7 @@ performance
httpd.conf
configuration file
Order Deny,Allow
Deny from all
- Allow from .foo.com
+ Allow from .example.com
</Location>
Userdir
directive, the argument is treated as a
filename pattern, and is used to turn the name into a directory
specification. A request for
- http://www.foo.com/~bob/one/two.html
will be
+ http://www.example.com/~bob/one/two.html
will be
translated to:
UserDir directive used | Translated path |
---|---|
UserDir http://www.foo.com/users | http://www.foo.com/users/bob/one/two.html |
UserDir http://www.example.com/users | http://www.example.com/users/bob/one/two.html |
UserDir -http://www.foo.com/*/usr | http://www.foo.com/bob/usr/one/two.html | http://www.example.com/bob/usr/one/two.html |
UserDir -http://www.foo.com/~*/ | http://www.foo.com/~bob/one/two.html | http://www.example.com/~bob/one/two.html |
It is also possible to specify alternative user directories. If you use a command like:
With a request for http://www.foo.com/~bob/one/two.html, will try to +
With a request for http://www.example.com/~bob/one/two.html, will try to find the page at ~bob/public_html/one/two.html first, then /usr/web/bob/one/two.html, and finally it will send a redirect -to http://www.foo.com/bob/one/two.html.
+to http://www.example.com/bob/one/two.html.If you add a redirect, it must be the last alternative in the list. Apache cannot determine if the redirect succeeded or not, so if you have the redirect earlier in the list, that will always be the alternative diff --git a/docs/manual/mod/mod_usertrack.xml b/docs/manual/mod/mod_usertrack.xml index 6ea25a0cbc1..ac5512f120c 100644 --- a/docs/manual/mod/mod_usertrack.xml +++ b/docs/manual/mod/mod_usertrack.xml @@ -122,7 +122,7 @@ time late in the year "37".
The domain string must begin with a dot, and
must include at least one embedded dot. That is,
- .foo.com
is legal, but foo.bar.com
and
+ .example.com
is legal, but foo.example.com
and
.com
are not.
Suppose we want to load balance the traffic to
- www.foo.com
over www[0-5].foo.com
+ www.example.com
over www[0-5].example.com
(a total of 6 servers). How can this be done?
The simplest method for load-balancing is to use
DNS round-robin.
- Here you just configure www[0-9].foo.com
+ Here you just configure www[0-9].example.com
as usual in your DNS with A (address) records, e.g.,
@@ -626,15 +626,15 @@ www IN A 1.2.3.4 www IN A 1.2.3.5
Now when www.foo.com
gets
+
Now when www.example.com
gets
resolved, BIND
gives out www0-www5
- but in a permutated (rotated) order every time.
This way the clients are spread over the various
servers. But notice that this is not a perfect load
balancing scheme, because DNS resolutions are
cached by clients and other nameservers, so
- once a client has resolved www.foo.com
- to a particular wwwN.foo.com
, all its
+ once a client has resolved www.example.com
+ to a particular wwwN.example.com
, all its
subsequent requests will continue to go to the same
IP (and thus a single server), rather than being
distributed across the other available servers. But the
@@ -661,15 +661,15 @@ www IN A 1.2.3.5
In this variant we use www0.foo.com
to be actually
- www.foo.com
by using a single
www0.example.com
to be actually
+ www.example.com
by using a single
-www IN CNAME www0.foo.com. +www IN CNAME www0.example.com.
entry in the DNS. Then we convert
- www0.foo.com
to a proxy-only server,
+ www0.example.com
to a proxy-only server,
i.e., we configure this machine so all arriving URLs
are simply passed through its internal proxy to one of
the 5 other servers (www1-www5
). To
@@ -709,7 +709,7 @@ while (<STDIN>) {
www0.foo.com
still is overloaded? The
+ www0.example.com
still is overloaded? The
answer is yes, it is overloaded, but with plain proxy
throughput requests, only! All SSI, CGI, ePerl, etc.
processing is handled done on the other machines.