Configuring and Managing Your Web Server

Before you place your Web files into the directory, I recommend finding out where all the Apache files are located on your system. Table 15-1 lists the files and directories related to the Apache Web server:

Table 15-1 Apache Web Server File and Directory Locations

Location

Contains

/etc/httpd

Directory containing httpd configuration files.

/etc/logrotate.d/httpd

The logrotate file for the httpd server.

/etc/rc.d/init.d/httpd

The startup script for the httpd server.

/usr/sbin/httpd

The httpd server daemon.

Location

Contains

/usr/lib/httpd

Directory containing the modules used by the

httpd server.

/var/log/httpd

Directory containing the httpd log files.

/var/lock/subsys/httpd

The server lock file. The lock file contains the

process ID of the running process and is used

to prevent users from accessing the already

running application.

The configuration file for the Apache Web server is /etc/httpd/conf/httpd. conf. You can manually edit this file to configure the Web server for the performance that you desire. Red Hat Enterprise Linux provides a graphical based tool that can be used to edit the Apache configuration file instead of manually editing it. I find it much faster to directly edit the configuration file, but many people prefer to use their mouse to click icons and then type information into text boxes. In the next section, you use the graphical based tool to edit the /etc/httpd/conf/httpd.conf file.

Was this article helpful?

0 0

Post a comment