[ Pobierz całość w formacie PDF ]
.This expiration time is not overridden by CacheMaxExpire.Currently, the proxy module only provides proying capabilities for FTP and HTTP (both HTTP/0.9 and HTTP/1.0) protocols.NoCacheSyntax:NoCache [host] | [domain].Context:server configurationThe NoCache directive provides you with a mechanism to specify a list of hosts or domains that you dont want cached by the proxy server.You can specify hosts and/or domain names in a list form where each host or domain is separated by spaces:NoCache foo.xxxx.com bar.comThis directive is particularly useful if you know a site is dynamic, and you dont want stale information to ever be served for it.The mod_status ModuleSource:mod_status.cBase:NoType:Server StatusThe mod_status module is a great tool for informing the server administrator what the server is doing.It takes a snapshot of all the server processes and creates an HTML report that can be viewed with a browser.The report includes a wealth of information including the following:The number of children processes and their statusTransfers performed by each childThe average number of requests per secondThe average number of bytes served per secondThe amount of resources utilized by each child and by the entire groupCurrent clients and the requests being served.mod_status is not included by default; you'll need to reconfigure and rebuild the server.Once built, you'll need to add the following directives to your conf/access.conf configuration file:<Location /status>SetHandler server-status</Location>If you want to keep your server statistics private, add a Limit section specifying some access restrictions (see Chapter 15 for more information).Restart the server and point your Web browser to http://yourhost/status.The server will return its detailed status report.The mod_userdir ModuleSource:mod_userdir.cBase:YesType:Resource LocationThe mod_userdir module is built into Apache by default.It provides a mechanism through which users can publish their own home page information.This module specifies the directory, relative of a local user's home directory, where public HTML documents and home pages can be found.Requests for user's home pages take the form ofhttp://www.somedomain.com/~usermod_userdir DirectivesThe only directive provided by this module is UserDir.UserDirSyntax:UserDir [disabled] | directorynameDefault:UserDir public_htmlContext:server configuration, virtual hostThe UserDir directive sets the directory name relative of a local user's home directory where public HTML documents may be found.This feature can be disabled by specifying the disabled option to the directive.If omitted, it defaults toUserDir public_htmlAlthough this may be a useful directive to allow users in a UNIX environment to specify their own home pages, some users may not be aware of this fact, resulting in the possibility of them creating a directory named public_html that contains private files.Additionally, depending on the kind of users in your system, this can create some security problems.Apache 1.1 enhances this module to redirect home page requests to a different directory, removing the security concerns previously raised.By specifying an absolute path such as the following:UserDir /Users/homepagesThe server will look for a directory matching the request in /Users/homepages.Requests for http://www.somedomain.com/~x will be retrieved from /Users/homepages/x.If you have enabled Options FollowSymLinks or AllowOverrides Options for the directory containing your users' home directories, any users could attach, via a link, any portion of your filesystem to their public_html directory.This, in effect, would make private materials from your organization available to anyone outside of your organization.This might not be what you want, and might be a good reason to scan logs frequently.Here's an example of the UserDir directive:UserDir public_htmlA request for http://www.somedomain.com/~user will return the file http://www.somedomain.com/~user/index.html.SummaryThis chapter serves as a reference guide for Apache modules.In the next chapters, you will learn about system administration, including the basics, Web server performance tuning, and Web accounting
[ Pobierz całość w formacie PDF ]