<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ru Servers Reference Blog &#187; Web Server</title>
	<atom:link href="http://blog.server.ruservers.com/category/server/web-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.server.ruservers.com</link>
	<description>Server Maintenance Guide</description>
	<lastBuildDate>Tue, 02 Aug 2011 20:57:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to Install the Apache Web Server</title>
		<link>http://blog.server.ruservers.com/2009/01/how-to-install-the-apache-web-server/</link>
		<comments>http://blog.server.ruservers.com/2009/01/how-to-install-the-apache-web-server/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 18:11:59 +0000</pubDate>
		<dc:creator>Ru Servers</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://blog.server.ruservers.com/2009/01/how-to-install-the-apache-web-server/</guid>
		<description><![CDATA[&#160; Source: http://webdesign.about.com/cs/apache/a/aainstallapache.htm &#160; Before You Begin Apache is one of the most popular Web servers on the Web right now, and part of its charm is that it&#8217;s free. It also has a lot of features that make it very extensible and useful for many different types of Web sites. It is a server [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Source: <a title="http://webdesign.about.com/cs/apache/a/aainstallapache.htm" href="http://webdesign.about.com/cs/apache/a/aainstallapache.htm" target="_blank">http://webdesign.about.com/cs/apache/a/aainstallapache.htm</a></p>
<p>&#160;</p>
<h5>Before You Begin</h5>
<p>Apache is one of the most popular Web servers on the Web right now, and part of its charm is that it&#8217;s free. It also has a lot of features that make it very extensible and useful for many different types of Web sites. It is a server that is used for personal Web pages up to enterprise level sites. </p>
<p>This article will discuss how to install Apache on a Linux system. Before we start you should be at least comfortable working in Linux &#8211; changing directories, using tar and gunzip, and compiling with make (I&#8217;ll discuss where to get binaries if you don&#8217;t want to mess with compiling your own). You should also have access to the root account on the server machine. </p>
<h5>Download Apache</h5>
<p>I recommend downloading the latest stable release. At the time of this writing, that was Apache 2.0. The best place to get Apache is from the <a href="http://httpd.apache.org/download.cgi">Apache HTTP Server download site</a>. Download the sources appropriate to your system. <a href="http://mirrors.midco.net/pub/apache.org/httpd/binaries/">Binary releases</a> are available as well. </p>
<h5>Extract the Files</h5>
<p>Once you&#8217;ve downloaded the files you need to uncompress them and untarring:   <br />&#160; gunzip -d httpd-2_0_NN.tar.gz    <br />&#160; tar xvf httpd-2_0_NN.tar    <br />This creates a new directory under the current directory with the source files. </p>
<h5>Configuring</h5>
<p>Once you&#8217;ve got the files, you need to tell your machine where to find everything by configuring the source files. The easiest way is to accept all the defaults and just type:   <br />&#160; ./configure </p>
<p>Of course, most people don&#8217;t want to accept just the default choices. The most important option is the prefix= option. This specifies the directory where the Apache files will be installed. You can also set specific environment variables and modules. Some of the <a href="http://httpd.apache.org/docs-2.0/mod/">modules</a> I like to have installed are: </p>
<ul>
<li>mod_alias &#8211; to map different parts of the URL tree </li>
<li>mod_include &#8211; to parse Server Side Includes </li>
<li>mod_mime &#8211; to associate file extensions with its MIME-type </li>
<li>mod_rewrite &#8211; to rewrite URLs on the fly </li>
<li>mod_speling (sic) &#8211; to help your readers who might misspell URLs </li>
<li>mod_ssl &#8211; to allow for strong cryptography using SSL </li>
<li>mod_userdir &#8211; to allow system users to have their own Web page directories</li>
</ul>
<p>Please keep in mind that these aren&#8217;t all the modules I might install on a given system. Read the <a href="http://httpd.apache.org/docs-2.0/mod/">details about the modules</a> to determine which ones you need. </p>
<h5>Build</h5>
<p>As with any source installation, you&#8217;ll then need to build the installation:   <br />&#160; make    <br />&#160; make install </p>
<h5>Customize</h5>
<p>Assuming that there were no problems, you are ready to customize your Apache configuration. This really just amounts to editing the httpd.conf file. This file is located in the PREFIX/conf directory. I generally edit it with <a href="http://webdesign.about.com/cs/vithetexteditor/index.htm">vi</a>:    <br />&#160; vi PREFIX/conf/httpd.conf    <br />Note: you&#8217;ll need to be root to edit this file. </p>
<p>Follow the instructions in this file to edit your configuration the way you want it. More help is available on the <a href="http://httpd.apache.org/docs-2.0/mod/quickreference.html">Apache Web site</a>. </p>
<h5>Test Your Server</h5>
<p>Open a Web browser on the same machine and type http://localhost/ in the address box. You should see a page similar to the one in the partial screen shot above. Specifically, it will say in big letters &quot;Seeing this instead of the website you expected?&quot; This is good news, as it means your server installed correctly. </p>
<h5>Start Editing/Uploading Pages</h5>
<p>Once your server is up and running you can start posting pages. Have fun building your Web site. </p>
<h6>Web Design Path</h6>
<p><a href="http://webdesign.about.com/library/bl_proprogrammers.htm">Professional Web Developers</a></p>
<h6>Suggested Reading</h6>
<p><a href="http://webdesign.about.com/library/weekly/aa092099.htm">How are You Being Served?</a>    <br /><a href="http://webdesign.about.com/library/weekly/aa092501a.htm">Time to Switch from IIS</a>    <br /><a href="http://webdesign.about.com/library/weekly/aa051301a.htm">Become a Hosting Provider</a></p>
<h6>More Apache Help</h6>
<p><a href="http://webdesign.about.com/cs/apache/a/aainstapachewin.htm">How to Install Apache on Windows</a>&#160; <br /><a href="http://webdesign.about.com/cs/apache/">More Apache Resources</a>    <br /><a href="http://webdesign.about.com/cs/webservers/">Other Web Servers</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.server.ruservers.com/2009/01/how-to-install-the-apache-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache HTTP Server Configuration (Red Hat Linux)</title>
		<link>http://blog.server.ruservers.com/2009/01/apache-http-server-configuration-red-hat-linux/</link>
		<comments>http://blog.server.ruservers.com/2009/01/apache-http-server-configuration-red-hat-linux/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 18:01:33 +0000</pubDate>
		<dc:creator>Ru Servers</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://blog.server.ruservers.com/2009/01/apache-http-server-configuration-red-hat-linux/</guid>
		<description><![CDATA[&#160; Source: http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-httpdconfig.html&#160; &#160; In Red Hat Linux 8.0, the Apache HTTP Server was updated to version 2.0, which uses different configuration options. Also starting with Red Hat Linux 8.0, the RPM package was renamed httpd. If you want to migrate an existing configuration file by hand, refer to the migration guide at /usr/share/doc/httpd-&#60;ver&#62;/migration.html or [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Source: <a title="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-httpdconfig.html" href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-httpdconfig.html" target="_blank">http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-httpdconfig.html</a>&#160;</p>
<p>&#160;</p>
<p><a href="http://blog.server.ruservers.com/wp-content/uploads/2009/01/docs-header.gif" target="_blank" rel="lightbox[103]"><img title="docs_header" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="60" alt="docs_header" src="http://blog.server.ruservers.com/wp-content/uploads/2009/01/docs-header-thumb.gif" width="150" border="0" /></a> </p>
<p>In Red Hat Linux 8.0, the Apache HTTP Server was updated to version 2.0, which uses different configuration options. Also starting with Red Hat Linux 8.0, the RPM package was renamed <tt>httpd</tt>. If you want to migrate an existing configuration file by hand, refer to the migration guide at <tt>/usr/share/doc/httpd-<tt><i>&lt;ver&gt;</i></tt>/migration.html</tt> or the <i>Red Hat Linux Reference Guide</i> for details. </p>
<p>If you configured the Apache HTTP Server with the <b>HTTP Configuration Tool</b> in previous versions of Red Hat Linux and then performed an upgrade, you can use the application to migrate the configuration file to the new format for version 2.0. Start the <b>HTTP Configuration Tool</b>, make any changes to the configuration, and save it. The configuration file saved will be compatible with version 2.0. </p>
<p>The <b>HTTP Configuration Tool</b> allows you to configure the <tt>/etc/httpd/conf/httpd.conf</tt> configuration file for the Apache HTTP Server. It does not use the old <tt>srm.conf</tt> or <tt>access.conf</tt> configuration files; leave them empty. Through the graphical interface, you can configure directives such as virtual hosts, logging attributes, and maximum number of connections. </p>
<p>Only modules that are shipped with Red Hat Linux can be configured with <b>HTTP Configuration Tool</b>. If additional modules are installed, they can not be configured using this tool. </p>
<p>The <tt>httpd</tt> and <tt>redhat-config-httpd</tt> RPM packages need to be installed to use the <b>HTTP Configuration Tool</b>. It also requires the X Window System and root access. To start the application, go to the <b>Main Menu Button</b> =&gt; <b>System Settings</b> =&gt; <b>Server Settings</b> =&gt; <b>HTTP Server</b> or type the command <tt>redhat-config-httpd</tt> at a shell prompt (for example, in an XTerm or GNOME Terminal).</p>
<p><a href="http://blog.server.ruservers.com/wp-content/uploads/2009/01/caution.png" target="_blank" rel="lightbox[103]"><img title="caution" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="34" alt="caution" src="http://blog.server.ruservers.com/wp-content/uploads/2009/01/caution-thumb.png" width="34" border="0" /></a>     <br /><b>Caution</b></p>
<p>Do not edit the <tt>/etc/httpd/conf/httpd.conf</tt> configuration file by hand if you wish to use this tool. The <b>HTTP Configuration Tool</b> generates this file after you save your changes and exit the program. If you want to add additional modules or configuration options that are not available in <b>HTTP Configuration Tool</b>, you cannot use this tool. </p>
<p>The general steps for configuring the Apache HTTP Server using the <b>HTTP Configuration Tool</b> are as following: </p>
<ol>
<li>
<p>Configure the basic settings under the <b>Main</b> tab.</p>
</li>
<li>
<p>Click on the <b>Virtual Hosts</b> tab and configure the default settings.</p>
</li>
<li>
<p>Under the <b>Virtual Hosts</b> tab, configure the Default Virtual Host.</p>
</li>
<li>
<p>If you want to serve more than one URL or virtual host, add the additional virtual hosts.</p>
</li>
<li>
<p>Configure the server settings under the <b>Server</b> tab.</p>
</li>
<li>
<p>Configure the connections settings under the <b>Performance Tuning</b> tab.</p>
</li>
<li>
<p>Copy all necessary files to the <tt>DocumentRoot</tt> and <tt>cgi-bin</tt> directories.</p>
</li>
<li>
<p>Exit the application and select to save your settings.</p>
</li>
</ol>
<h3><a name="S1-HTTPD-BASIC-SETTINGS"></a>Basic Settings</h3>
<p>Use the <b>Main</b> tab to configure the basic server settings. </p>
<p><a name="HTTPD-MAIN"></a></p>
<p><a href="http://blog.server.ruservers.com/wp-content/uploads/2009/01/httpdmain.png" target="_blank" rel="lightbox[103]"><img title="httpd-main" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="328" alt="httpd-main" src="http://blog.server.ruservers.com/wp-content/uploads/2009/01/httpdmain-thumb.png" width="409" border="0" /></a> </p>
<p><b>Figure Basic Settings</b></p>
<p>Enter a fully qualified domain name that you have the right to use in the <b>Server Name</b> text area. This option corresponds to the <a href="http://httpd.apache.org/docs-2.0/mod/core.html#servername"><tt>ServerName</tt></a> directive in <tt>httpd.conf</tt>. The <tt>ServerName</tt> directive sets the hostname of the Web server. It is used when creating redirection URLs. If you do not define a server name, the Web server attempts to resolve it from the IP address of the system. The server name does not have to be the domain name resolved from the IP address of the server. For example, you might want to set the server name to www.example.com when your server&#8217;s real DNS name is actually foo.example.com. </p>
<p>Enter the email address of the person who maintains the Web server in the <b>Webmaster email address</b> text area. This option corresponds to the <a href="http://httpd.apache.org/docs-2.0/mod/core.html#serveradmin"><tt>ServerAdmin</tt></a> directive in <tt>httpd.conf</tt>. If you configure the server&#8217;s error pages to contain an email address, this email address will be used so that users can report a problem by sending email to the server&#8217;s administrator. The default value is root@localhost. </p>
<p>Use the <b>Available Addresses</b> area to define the ports on which the server will accept incoming requests. This option corresponds to the <a href="http://httpd.apache.org/docs-2.0/mod/mpm_common.html#listen"><tt>Listen</tt></a> directive in <tt>httpd.conf</tt>. By default, Red Hat configures the Apache HTTP Server to listen to port 80 for non-secure Web communications. </p>
<p>Click the <b>Add</b> button to define additional ports on which to accept requests. A window as shown in <a href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-httpdconfig.html#HTTPD-LISTEN">Figure 19-2</a> will appear. Either choose the <b>Listen to all addresses</b> option to listen to all IP addresses on the defined port or specify a particular IP address over which the server will accept connections in the <b>Address</b> field. Only specify one IP address per port number. If you want to specify more than one IP address with the same port number, create an entry for each IP address. If at all possible, use an IP address instead of a domain name to prevent a DNS lookup failure. Refer to <a href="http://httpd.apache.org/docs-2.0/dns-caveats.html">http://httpd.apache.org/docs-2.0/dns-caveats.html</a> for more information about <i>Issues Regarding DNS and Apache</i>. </p>
<p>Entering an asterisk (*) in the <b>Address</b> field is the same as choosing <b>Listen to all addresses</b>. Clicking the <b>Edit</b> button in the <b>Available Addresses</b> frame shows the same window as the <b>Add</b> button except with the fields populated for the selected entry. To delete an entry, select it and click the <b>Delete</b> button. </p>
<p><a href="http://blog.server.ruservers.com/wp-content/uploads/2009/01/tip.png" target="_blank" rel="lightbox[103]"><img title="tip" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="34" alt="tip" src="http://blog.server.ruservers.com/wp-content/uploads/2009/01/tip-thumb.png" width="34" border="0" /></a>     <br /><b>Tip</b></p>
<p>If you set the server to listen to a port under 1024, you must be root to start it. For port 1024 and above, <tt>httpd</tt> can be started as a regular user. </p>
<p><a name="HTTPD-LISTEN"></a></p>
<p><a href="http://blog.server.ruservers.com/wp-content/uploads/2009/01/httpdlisten.png" target="_blank" rel="lightbox[103]"><img title="httpd-listen" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="144" alt="httpd-listen" src="http://blog.server.ruservers.com/wp-content/uploads/2009/01/httpdlisten-thumb.png" width="302" border="0" /></a> </p>
<p><b></b></p>
<h3>Default Settings</h3>
<p>After defining the <b>Server Name</b>, <b>Webmaster email address</b>, and <b>Available Addresses</b>, click the <b>Virtual Hosts</b> tab and click the <b>Edit Default Settings</b> button. The window shown in <a href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-httpd-default-settings.html#HTTPD-SITE-CONFIG-SCREEN">Figure 19-3</a> will appear. Configure the default settings for your Web server in this window. If you add a virtual host, the settings you configure for the virtual host take precedence for that virtual host. For a directive not defined within the virtual host settings, the default value is used. </p>
<h4><a name="S2-HTTPD-SITE-CONFIG"></a>Site Configuration</h4>
<p>The default values for the <b>Directory Page Search List</b> and <b>Error Pages</b> will work for most servers. If you are unsure of these settings, do not modify them. </p>
<p><a name="HTTPD-SITE-CONFIG-SCREEN"></a></p>
<p><a href="http://blog.server.ruservers.com/wp-content/uploads/2009/01/httpdsiteconfig.png" target="_blank" rel="lightbox[103]"><img title="httpd-siteconfig" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="420" alt="httpd-siteconfig" src="http://blog.server.ruservers.com/wp-content/uploads/2009/01/httpdsiteconfig-thumb.png" width="623" border="0" /></a> </p>
<p><b>Figure Site Configuration</b></p>
<p>The entries listed in the <b>Directory Page Search List</b> define the <a href="http://httpd.apache.org/docs-2.0/mod/mod_dir.html#directoryindex"><tt>DirectoryIndex</tt></a> directive. The <tt>DirectoryIndex</tt> is the default page served by the server when a user requests an index of a directory by specifying a forward slash (/) at the end of the directory name. </p>
<p>For example, when a user requests the page http://<tt><i>www.example.com</i></tt>/<tt><i>this_directory</i></tt>/, they are going to get either the <tt>DirectoryIndex</tt> page if it exists, or a server-generated directory list. The server will try to find one of the files listed in the <tt>DirectoryIndex</tt> directive and will return the first one it finds. If it does not find any of these files and if <tt>Options Indexes</tt> is set for that directory, the server will generate and return a list, in HTML format, of the subdirectories and files in the directory. </p>
<p>Use the <b>Error Code</b> section to configure Apache HTTP Server to redirect the client to a local or external URL in the event of a problem or error. This option corresponds to the <a href="http://httpd.apache.org/docs-2.0/mod/core.html#errordocument"><tt>ErrorDocument</tt></a> directive. If a problem or error occurs when a client tries to connect to the Apache HTTP Server, the default action is to display the short error message shown in the <b>Error Code</b> column. To override this default configuration, select the error code and click the <b>Edit</b> button. Choose <b>Default</b> to display the default short error message. Choose <b>URL</b> to redirect the client to an external URL and enter a complete URL including the http:// in the <b>Location</b> field. Choose <b>File</b> to redirect the client to an internal URL and enter a file location under the document root for the Web server. The location must begin the a slash (/) and be relative to the Document Root. </p>
<p>For example, to redirect a 404 Not Found error code to a webpage that you created in a file called <tt>404.html</tt>, copy <tt>404.html</tt> to <tt><tt><i>DocumentRoot</i></tt>/../error/404.html</tt>. In this case, <tt><i>DocumentRoot</i></tt> is the Document Root directory that you have defined (the default is <tt>/var/www/html/</tt>). If the Document Root is left as the default location, the file should be copied to <tt>/var/www/error/404.html</tt>. Then, choose <b>File</b> as the Behavior for <b>404 &#8211; Not Found</b> error code and enter <tt>/error/404.html</tt> as the <b>Location</b>. </p>
<p>From the <b>Default Error Page Footer</b> menu, you can choose one of the following options: </p>
<ul>
<li>
<p><b>Show footer with email address</b> — Display the default footer at the bottom of all error pages along with the email address of the website maintainer specified by the <a href="http://httpd.apache.org/docs-2.0/mod/core.html#serveradmin"><tt>ServerAdmin</tt></a> directive. Refer to <a href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-httpd-virtualhosts-settings.html#S3-HTTPD-VIRTUALHOSTS-ADD-GENERAL">Section 19.3.1.1 <i>General Options</i></a> for information about configuring the <tt>ServerAdmin</tt> directive.</p>
</li>
<li>
<p><b>Show footer</b> — Display just the default footer at the bottom of error pages.</p>
</li>
<li>
<p><b>No footer</b> — Do not display a footer at the bottom of error pages.</p>
</li>
</ul>
<h4><a name="S2-HTTPD-LOGGING"></a>Logging</h4>
<p>By default, the server writes the transfer log to the file <tt>/var/log/httpd/access_log</tt> and the error log to the <tt>/var/log/httpd/error_log</tt> file. </p>
<p>The transfer log contains a list of all attempts to access the Web server. It records the IP address of the client that is attempting to connect, the date and time of the attempt, and the file on the Web server that it is trying to retrieve. Enter the name of the path and file in which to store this information. If the path and filename does not start with a slash (/), the path is relative to the server root directory as configured. This option corresponds to the <a href="http://httpd.apache.org/docs-2.0/mod/mod_log_config.html#transferlog"><tt>TransferLog</tt></a> directive. </p>
<p><a name="HTTPD-LOGGING-SCREEN"></a></p>
<p><a href="http://blog.server.ruservers.com/wp-content/uploads/2009/01/httpdlogging.png" target="_blank" rel="lightbox[103]"><img title="httpd-logging" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="420" alt="httpd-logging" src="http://blog.server.ruservers.com/wp-content/uploads/2009/01/httpdlogging-thumb.png" width="623" border="0" /></a> </p>
<p><b>Figure Logging</b></p>
<p>You can configure a custom log format by checking <b>Use custom logging facilities</b> and entering a custom log string in the <b>Custom Log String</b> field. This configures the <a href="http://httpd.apache.org/docs-2.0/mod/mod_log_config.html#logformat"><tt>LogFormat</tt></a> directive. Refer to <a href="http://httpd.apache.org/docs-2.0/mod/mod_log_config.html#formats">http://httpd.apache.org/docs-2.0/mod/mod_log_config.html#formats</a> for details on the format of this directive. </p>
<p>The error log contains a list of any server errors that occur. Enter the name of the path and file in which to store this information. If the path and filename does not start with a slash (/), the path is relative to the server root directory as configured. This option corresponds to the <a href="http://httpd.apache.org/docs-2.0/mod/core.html#errorlog"><tt>ErrorLog</tt></a> directive. </p>
<p>Use the <b>Log Level</b> menu to set how verbose the error messages in the error logs will be. It can be set (from least verbose to most verbose) to emerg, alert, crit, error, warn, notice, info or debug. This option corresponds to the <a href="http://httpd.apache.org/docs-2.0/mod/core.html#loglevel"><tt>LogLevel</tt></a> directive. </p>
<p>The value chosen with the <b>Reverse DNS Lookup</b> menu defines the <a href="http://httpd.apache.org/docs-2.0/mod/core.html#hostnamelookups"><tt>HostnameLookups</tt></a> directive. Choosing <b>No Reverse Lookup</b> sets the value to off. Choosing <b>Reverse Lookup</b> sets the value to on. Choosing <b>Double Reverse Lookup</b> sets the value to double. </p>
<p>If you choose <b>Reverse Lookup</b>, your server will automatically resolve the IP address for each connection which requests a document from your Web server. Resolving the IP address means that your server will make one or more connections to the DNS in order to find out the hostname that corresponds to a particular IP address. </p>
<p>If you choose <b>Double Reverse Lookup</b>, your server will perform a double-reverse DNS. In other words, after a reverse lookup is performed, a forward lookup is performed on the result. At least one of the IP addresses in the forward lookup must match the address from the first reverse lookup. </p>
<p>Generally, you should leave this option set to <b>No Reverse Lookup</b>, because the DNS requests add a load to your server and may slow it down. If your server is busy, the effects of trying to perform these reverse lookups or double reverse lookups may be quite noticeable. </p>
<p>Reverse lookups and double reverse lookups are also an issue for the Internet as a whole. All of the individual connections made to look up each hostname add up. Therefore, for your own Web server&#8217;s benefit, as well as for the Internet&#8217;s benefit, you should leave this option set to <b>No Reverse Lookup</b>. </p>
<h4>Environment Variables</h4>
<p>Sometimes it is necessary to modify environment variables for CGI scripts or server-side include (SSI) pages. The Apache HTTP Server can use the <tt>mod_env</tt> module to configure the environment variables which are passed to CGI scripts and SSI pages. Use the <b>Environment Variables</b> page to configure the directives for this module. </p>
<p><a name="HTTPD-ENVIRONMENT-VARIABLES-SCREEN"></a></p>
<p><a href="http://blog.server.ruservers.com/wp-content/uploads/2009/01/httpdenvironment.png" target="_blank" rel="lightbox[103]"><img title="httpd-environment" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="420" alt="httpd-environment" src="http://blog.server.ruservers.com/wp-content/uploads/2009/01/httpdenvironment-thumb.png" width="623" border="0" /></a> </p>
<p><b>Figure Environment Variables</b></p>
<p>Use the <b>Set for CGI Scripts</b> section to set an environment variable that is passed to CGI scripts and SSI pages. For example, to set the environment variable <tt>MAXNUM</tt> to <tt>50</tt>, click the <b>Add</b> button inside the <b>Set for CGI Script</b> section as shown in <a href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-httpd-default-settings.html#HTTPD-ENVIRONMENT-VARIABLES-SCREEN">Figure 19-5</a> and type <tt><b>MAXNUM</b></tt> in the <b>Environment Variable</b> text field and <tt><b>50</b></tt> in the <b>Value to set</b> text field. Click <b>OK</b> to add it to the list. The <b>Set for CGI Scripts</b> section configures the <a href="http://httpd.apache.org/docs-2.0/mod/mod_env.html#setenv"><tt>SetEnv</tt></a> directive. </p>
<p>Use the <b>Pass to CGI Scripts</b> section to pass the value of an environment variable when the server was first started to CGI scripts. To see this environment variable, type the command <tt>env</tt> at a shell prompt. Click the <b>Add</b> button inside the <b>Pass to CGI Scripts</b> section and enter the name of the environment variable in the resulting dialog box. Click <b>OK</b> to add it to the list. The <b>Pass to CGI Scripts</b> section configures the <a href="http://httpd.apache.org/docs-2.0/mod/mod_env.html#passenv"><tt>PassEnv</tt> </a>directive. </p>
<p>If you want to remove an environment variable so that the value is not passed to CGI scripts and SSI pages, use the <b>Unset for CGI Scripts</b> section. Click <b>Add</b> in the <b>Unset for CGI Scripts</b> section, and enter the name of the environment variable to unset. Click <b>OK</b> to add it to the list. This corresponds to the <a href="http://httpd.apache.org/docs-2.0/mod/mod_env.html#unsetenv"><tt>UnsetEnv</tt></a> directive. </p>
<p>To edit any of these environment values, select it from the list and click the corresponding <b>Edit</b> button. To delete any entry from the list, select it and click the cooresponding <b>Delete</b> button. </p>
<p>To learn more about environment variables in Apache HTTP Server, refer to the following: </p>
<pre><a href="http://httpd.apache.org/docs-2.0/env.html">http://httpd.apache.org/docs-2.0/env.html</a></pre>
<h4><a name="S2-HTTPD-DIRECTORIES"></a>Directories</h4>
<p>Use the <b>Directories</b> page to configure options for specific directories. This corresponds to the <a href="http://httpd.apache.org/docs-2.0/mod/core.html#directory"><tt>&lt;Directory&gt;</tt></a> directive. </p>
<p><a name="HTTPD-DIRECTORIES-SCREEN"></a></p>
<p><a href="http://blog.server.ruservers.com/wp-content/uploads/2009/01/httpddirectories.png" target="_blank" rel="lightbox[103]"><img title="httpd-directories" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="420" alt="httpd-directories" src="http://blog.server.ruservers.com/wp-content/uploads/2009/01/httpddirectories-thumb.png" width="623" border="0" /></a> </p>
<p><b>Figure Directories</b></p>
<p>Click the <b>Edit</b> button in the top right-hand corner to configure the <b>Default Directory Options</b> for all directories that are not specified in the <b>Directory</b> list below it. The options that you choose are listed as the <a href="http://httpd.apache.org/docs-2.0/mod/core.html#options">Options </a>directive within the <a href="http://httpd.apache.org/docs-2.0/mod/core.html#directory"><tt>&lt;Directory&gt;</tt></a> directive. You can configure the following options: </p>
<ul>
<li>
<p><b>ExecCGI</b> — Allow execution of CGI scripts. CGI scripts are not executed if this option is not chosen.</p>
</li>
<li>
<p><b>FollowSymLinks</b> — Allow symbolic links to be followed.</p>
</li>
<li>
<p><b>Includes</b> — Allow server-side includes.</p>
</li>
<li>
<p><b>IncludesNOEXEC</b> — Allow server-side includes, but disable the <tt>#exec</tt> and <tt>#include</tt> commands in CGI scripts.</p>
</li>
<li>
<p><b>Indexes</b> — Display a formatted list of the directory&#8217;s contents, if no <tt>DirectoryIndex</tt> (such as <tt>index.html</tt>) exists in the requested directory.</p>
</li>
<li>
<p><b>Multiview</b> — Support content-negotiated multiviews; this option is disabled by default.</p>
</li>
<li>
<p><b>SymLinksIfOwnerMatch</b> — Only follow symbolic links if the target file or directory has the same owner as the link.</p>
</li>
</ul>
<p>To specify options for specific directories, click the <b>Add</b> button beside the <b>Directory</b> list box. The window shown in <a href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-httpd-default-settings.html#HTTPD-DIRECTORIES-ADD">Figure 19-7</a> appears. Enter the directory to configure in the <b>Directory</b> text field at the bottom of the window. Select the options in the right-hand list, and configure the <a href="http://httpd.apache.org/docs-2.0/mod/mod_access.html#order"><tt>Order</tt></a> directive with the left-hand side options. The <tt>Order</tt> directive controls the order in which allow and deny directives are evaluated. In the <b>Allow hosts from</b> and <b>Deny hosts from</b> text field, you can specify one of the following: </p>
<ul>
<li>
<p>Allow all hosts — Type <tt><b>all</b></tt> to allow access to all hosts.</p>
</li>
<li>
<p>Partial domain name — Allow all hosts whose names match or end with the specified string.</p>
</li>
<li>
<p>Full IP address — Allow access to a specific IP address.</p>
</li>
<li>
<p>A subnet — Such as <tt><b>192.168.1.0/255.255.255.0</b></tt></p>
</li>
<li>
<p>A network CIDR specification — such as <tt><b>10.3.0.0/16</b></tt></p>
</li>
</ul>
<p><a name="HTTPD-DIRECTORIES-ADD"></a></p>
<p><a href="http://blog.server.ruservers.com/wp-content/uploads/2009/01/httpddirectoriesadd.png" target="_blank" rel="lightbox[103]"><img title="httpd-directories-add" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="384" alt="httpd-directories-add" src="http://blog.server.ruservers.com/wp-content/uploads/2009/01/httpddirectoriesadd-thumb.png" width="606" border="0" /></a> </p>
<p><b>Figure Directory Settings</b></p>
<p>If you check the <b>Let .htaccess files override directory options</b>, the configuration directives in the <tt>.htaccess</tt> file take precedence. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.server.ruservers.com/2009/01/apache-http-server-configuration-red-hat-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

