Common Apache Configuration Tweaks

A default Apache configuration file usually works at least minimally. You can test your installation after installing it by entering http://localhost as the URI in a web browser running on the same computer. You should see a generic page appear, as shown in Figure 23.1, which depicts the default page on a Mandrake 9.1 system. You should also test access to the server from other computers to be sure firewall rules (described in Chapter 20, "Controlling Network Access") or other problems aren't blocking access to the server. If you can't access the server, check that it's running. It should appear as apache, httpd, or httpd2 in a ps listing. Apache 1.3 can also be run from a super server, although this configuration is not common.

Figure 23.1: Once installed and run, a default Apache configuration displays a generic Apache web page or a page for your distribution.

Once the server is running, you may want to adjust some of its defaults. Some common features you might want to change include the server's user and group, the location of web pages the server delivers, and virtual domains. Two still more advanced options—delivering secure web pages and serving dynamic content—are covered in upcoming sections of this chapter.

0 0

Post a comment