
22 Configuring Your Secure Web Server
you might want to use www.yourserver.com when your server’s
real name is actually blah.yourserver.com. Note that the
ServerName has to be a valid DNS name that you have the right to
use (i.e., you can’t just make something up).
If you do specify a ServerName, be sure its IP address and server
name pair are included in your /etc/hosts file.
UseCanonicalName UseCanonicalName is set by default to on.
UseCanonicalName allows the server to construct an URLthat ref-
erences itself, using ServerName and Port.
CacheNegotiatedDocs By default, your secure web server asks proxy
servers not to cache any documents which were negotiated on the
basis of content (i.e., they may change with time or based on the in-
putfromtherequester). If you uncomment CacheNegotiatedDocs,
you are disabling that function and proxy servers will be allowed to
cache the documents from then on.
Timeout Timeout defines,in seconds, theamount oftimethatyourserver
willwaitforreceiptsandtransmissionsduringcommunications. Specif-
ically, Timeout defines how long your server will wait to receive a
GET request, howlong it will wait to receiveTCP packets on a POST
or PUTrequest andhow long it will wait between ACKs responding
to TCPpackets. Timeout is set to 300,which is appropriatefor most
situations.
KeepAlive KeepAlive allowspersistentconnections(i.e.,morethanone
request per connection), or does not allow persistent connections.
KeepAlive can be used to prevent any one client from consuming
too much of the server’s resources. By default, KeepAlive is set to
on, which meansthat yourserver allows persistentconnections. You
could set it to off, which would disable persistent connections. See
the MaxKeepAliveRequests directivefora relatedway of limiting
requests per connection.
MaxKeepAliveRequests This directivesets the maximum number of re-
quests allowed per persistent connection. Apache recommends a
high setting, which will improve your server’s performance.
MaxKeepAliveRequests is set to 100 by default,which should be
appropriate for most situations.
Kommentare zu diesen Handbüchern