Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
The main Apache configuration file is the subject of some substantial books. We can only scratch the surface in these videos, but we will give you the basic skills to use Apache. Open the httpd dot conf configuration file. As you scroll through it, you'll see it organized into three basic sections. First, directives associated with the global environment effect the overall operation of Apache. Next, directives in the main server configuration section set up default directives not otherwise configured in a virtual host container. Finally, the section related to virtual hosts, can help you configure multiple Web sites using a single IP address, and this is the basic way most lower cost Web hosts are configured today. The global environment section includes some basic directives, such as server root, which is the top level directory for Apache. By default it's set to the etc slash httpd directory. Let's take a look at this directory, specifically, I've run the ls dash l command on that directory. It has a couple of configuration subdirectories, and some soft links to various other directories. Next, the listen directive defines the port on which Apache listens. 80 is the default. And pay attention. I wouldn't be terribly surprised if this port number were messed up on the troubleshooting portion on one of your exams. Next, the include directive, shown here, literally incorporates directives from files as the server root directive specifies etc slash httpd. The effect of this directive is to include all dot conf files from the etc slash httpd slash conf dot d directory. Finally, the user and group are set to the Apache user, which you should be able to verify in files like etc slash password, and etc slash group. Next, let's look at the main server configuration section. The document root directive specifies the top level root directory for actual Web site files, if you don't configure virtual hosts on this server. By default it's set to var slash www slash HTML. Pay attention to the SELinux contexts in this directory, which you can verify with the ls dash Z var slash www command. You'll need those later. Next, take a look at the directive shown here. This is called a directory container. This is the start of the directory container, and this is the end of the directory container. Note the comment here, which allows you to configure user-based security on a Web site subdirectory. And the directives shown here allow you to set up host-based security, and we'll use these directives in another video. Next, the directory index directive. It specifies the name of the default Web page to look for when the url cites a directory. If it doesn't cite a directory, it looks for the index dot HTML file in the document root directory, in this case, var slash www dot HTML. If you specify a Web site sub-directory, say your url is example dot net, and the subdirectory is more, it looks for index dot HTML in the var slash www dot HTML slash more directory. Finally, there's the virtual server configuration. And for your convenience, Red Hat Enterprise Linux, at least the default version of their Apache configuration file, includes some suggestions for how to configure a virtual host, and we'll use those in another video. When you do, you'll probably want to create your own url, something different from dummy host dot example dot com, and should substitute accordingly.
| Course: | Red Hat Certified Engineer |
| Author: | Michael Jang |
| SKU: | 33845 |
| ISBN: | 1-934743-47-X |
| Release Date: | 2008-01-18 |
| Duration: | 6.5 hrs / 94 lessons |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |