• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part III: Appendixes > Runtime Configuration Issues

B.3. Runtime Configuration Issues

B.3.1. HostnameLookups

Prior to Apache 1.3, HostnameLookups defaulted to On. This adds latency to every request, because it requires a DNS lookup to complete before the request is finished. In Apache 1.3, this setting defaults to Off. However (1.3 or later), if you use any allow from domain or deny from domain directives, then you will pay for a double reverse DNS lookup (a reverse, followed by a forward to make sure that the reverse is not being spoofed). So for the highest performance, avoid using these directives (it's fine to use IP addresses rather than domain names).

Note that it's possible to scope the directives, such as within a <Location /server-status> section. In this case, the DNS lookups are only performed on requests matching the criteria. Here's an example which disables lookups except for .html and .cgi files:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint