6. The next step is to install the program and configure it.
7. Apache is designed to be configured and run from the same set of directories where it is compiled.
8. If you want to run it from somewhere else, make a directory and copy the conf, logs and icons directories into it.
9. The next step is to edit the configuration files for the server.
10. This consists of setting up various directives in up to three central configuration files. By default, these files are located in the conf directory and are called srm.conf, access.conf and httpd.conf.
11.
12. Then edit each of the files. Read the comments in each file carefully.
13. Failure to setup these files correctly could lead to your server not working or being insecure.
14. You should also have an additional file in the conf directory called mime.types. This file usually does not need editing.
16. the port number, the user it runs as, etc. Next edit the srm.conf file; this sets up the root of the document tree, special functions like server-parsed HTML or internal imagemap parsing, etc. Finally, edit the access.conf file to at least set the base cases of access.
67. Prefork MPM Apache 1.3 and Apache 2.0 Prefork Each child handles one connection at a time Many children High memory requirements â Youâll run out of memory before CPUâ
73. Agenda Why filters? Filter data structures and utilites An example Apache filter Filter types Configuration directives
74. Agenda cont... Frequently used Apache filters Output filters Input filters Pitfalls ways to avoid them mod_ext_filter Debugging hints The big filter list
75. Why filters? Same idea as Unix command line filters: ps ax | grep "apache.*httpd" | wc -l Allows independent, modular manipulations of HTTP data stream if a 1.3 CGI creates SSI or PHP tags, they aren't parsed CGI created SSI tags can be parsed in 2.0 possible Zend issue w/PHP at present
77. Filter utilities and structures ap_register_[input|output]_filter creates ap_filter_rec_t ap_add_[input|output]_filter[_handle] creates ap_filter_t ap_pass_brigade passes a bucket brigade to the next output filter ap_get_brigade gets a bucket brigade from the next input filter