2003-09-13 08:39:14 +08:00
|
|
|
<sect2>
|
2003-09-29 22:19:14 +08:00
|
|
|
<title>Configuring <application>Apache</application></title>
|
2003-09-13 08:39:14 +08:00
|
|
|
|
|
|
|
<sect3>
|
|
|
|
<title>Config files</title>
|
|
|
|
|
|
|
|
<para><filename>/etc/apache/*</filename></para>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>The main configuration file is called
|
2003-10-22 21:28:20 +08:00
|
|
|
<filename>httpd.conf</filename>. Modify it to run the server as a
|
|
|
|
dedicated user:</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>sed -i -e "s%User nobody%User apache%" -e "s%^Group #-1%Group apache%" /etc/apache/httpd.conf</command></userinput></screen>
|
|
|
|
|
|
|
|
<para>See
|
|
|
|
<ulink url="http://httpd.apache.org/docs-2.0/configuring.html"/> for
|
|
|
|
detailed instructions on customizing your Apache <acronym>HTTP</acronym>
|
2003-09-13 08:39:14 +08:00
|
|
|
server.</para>
|
|
|
|
|
2004-03-28 15:14:54 +08:00
|
|
|
<para>Install <filename>/etc/rc.d/init.d/apache</filename>
|
|
|
|
init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>make install-apache</command></userinput></screen>
|
2003-09-13 08:39:14 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|