Ignore:
Timestamp:
09/13/2003 12:39:14 AM (21 years ago)
Author:
Igor Živković <igor@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
ab8de21f
Parents:
7891efc
Message:

update to Apache-2.0.47

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1050 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • content/web/apache/apache-config.xml

    r7891efc rff3fa53  
     1<sect2>
     2<title>Configuring Apache</title>
     3
     4<sect3>
     5<title>Config files</title>
     6
     7<para><filename>/etc/apache/*</filename></para>
     8
     9</sect3>
     10
     11<sect3><title>Configuration Information</title>
     12
     13<para>The main configuration file is called
     14<filename>httpd.conf</filename>. See
     15<ulink
     16url="http://httpd.apache.org/docs-2.0/configuring.html">http://httpd.apache.org/docs-2.0/configuring.html</ulink> for detailed
     17instructions on customizing your Apache <acronym>HTTP</acronym>
     18server.</para>
     19
     20<para>To automate the running of Apache, use the following command to
     21create the init.d script:</para>
     22
     23<screen><userinput><command>cat &gt; /etc/rc.d/init.d/apache &lt;&lt; "EOF"
     24#!/bin/bash
     25
     26source /etc/sysconfig/rc
     27source $rc_functions
     28
     29case "$1" in
     30        start)
     31                echo "Starting Apache daemon..."
     32                /usr/sbin/apachectl -k start
     33                evaluate_retval
     34                ;;
     35
     36        stop)
     37                echo "Stopping Apache daemon..."
     38                /usr/sbin/apachectl -k stop
     39                evaluate_retval
     40                ;;
     41
     42        restart)
     43                echo "Restarting Apache daemon..."
     44                /usr/sbin/apachectl -k restart
     45                evaluate_retval
     46                ;;
     47
     48        status)
     49                statusproc /usr/sbin/httpd
     50                ;;
     51               
     52        *)
     53                echo "Usage: $0 {start|stop|restart|status}"
     54                exit 1
     55                ;;
     56esac
     57EOF
     58chmod 755 /etc/rc.d/init.d/apache</command></userinput></screen>
     59
     60<para>Create the symbolic links to this file in the relevant
     61<filename class="directory">rc.d</filename> directory
     62with the following commands:</para>
     63
     64<screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
     65ln -sf ../init.d/apache ../rc0.d/K28apache &amp;&amp;
     66ln -sf ../init.d/apache ../rc1.d/K28apache &amp;&amp;
     67ln -sf ../init.d/apache ../rc2.d/K28apache &amp;&amp;
     68ln -sf ../init.d/apache ../rc3.d/S32apache &amp;&amp;
     69ln -sf ../init.d/apache ../rc4.d/S32apache &amp;&amp;
     70ln -sf ../init.d/apache ../rc5.d/S32apache &amp;&amp;
     71ln -sf ../init.d/apache ../rc6.d/K28apache</command></userinput></screen>
     72
     73</sect3>
     74
     75</sect2>
Note: See TracChangeset for help on using the changeset viewer.