Workshop


The workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowlege into practice.

Quiz

1.

Name some Apache settings that might limit scalability or affect Apache performance.

2.

Name some operating system settings that might limit scalability.

3.

Name some approaches to improve performance.

4.

Which VirtualHost container gets a request if the connection uses NameVirtualHost, but no Host header is sent?

5.

Is the ServerName directive necessary in a VirtualHost container?

Answers

1.

Some of the Apache settings that might affect scalability include FollowSymLinks, SymLinksIfOwnerMatch arguments to the Options directive, enabling per-directory configuration files, hostname lookups, having a scoreboard file, and statistics collection with mod_status.

2.

Some operating system settings that might affect scalability include limits for number of processes, open file descriptors, and memory allowed per process.

3.

The following are some suggestions for improving performance: load distribution via a hardware load balancer or reverse proxy, data compression, caching, mapping files to memory, and compiling modules statically.

4.

Reading the configuration top-to-bottom, the first VirtualHost container is favored. The same behavior occurs if there is a Host header, but no VirtualHost container that matches it.

5.

Only when name-based virtual hosts are used. The Host header contents are compared to the contents of the ServerName directive. If a match isn't satisfied, the VirtualHost containers' ServerAlias directive value(s) are checked for matches.



Sams Teach Yourself PHP MySQL and Apache All in One
Sams Teach Yourself PHP, MySQL and Apache All in One (4th Edition)
ISBN: 067232976X
EAN: 2147483647
Year: 2003
Pages: 333
Authors: Julie Meloni

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net