Commit 32c8051a authored by Andre Malo's avatar Andre Malo
Browse files

use <program> for programs


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106803 13f79535-47bb-0310-9956-ffa450edef68
parent e69bae92
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -105,14 +105,15 @@
    platforms but are disallowed by default on FreeBSD, NetBSD, and 
    OpenBSD in order to match the system-wide policy on those
    platforms.  But even on systems where it is disallowed by default, a 
    special configure parameter can change this behavior for Apache.</p>
    special <program>configure</program> parameter can change this behavior
    for Apache.</p>

    <p>On the other hand, on some platforms such as Linux and Tru64 the 
    <strong>only</strong> way to handle both IPv6 and IPv4 is to use 
    mapped addresses. If you want Apache to handle IPv4 and IPv6 connections 
    with a minimum of sockets, which requires using IPv4-mapped IPv6 
    addresses, specify the <code>--enable-v4-mapped</code> <a
      href="programs/configure.html">configure</a> option.</p>
    addresses, specify the <code>--enable-v4-mapped</code> <program>
    configure</program> option.</p>

    <p><code>--enable-v4-mapped</code> is the default on all platforms but 
    FreeBSD, NetBSD, and OpenBSD, so this is probably how your Apache was 
@@ -130,10 +131,9 @@

    <p>If your platform supports it and you want Apache to handle IPv4 and 
    IPv6  connections on separate sockets (i.e., to disable IPv4-mapped 
    addresses), specify the <code>--disable-v4-mapped</code> <a
      href="programs/configure.html">configure</a> option. 
    <code>--disable-v4-mapped</code> is the default on FreeBSD, 
    NetBSD, and OpenBSD.</p>
    addresses), specify the <code>--disable-v4-mapped</code> <program>
    configure</program> option. <code>--disable-v4-mapped</code> is the
    default on FreeBSD, NetBSD, and OpenBSD.</p>
  </section>

  <section id="virtualhost">
+2 −2
Original line number Diff line number Diff line
@@ -140,8 +140,8 @@

    <p>The addition of <a href="vhosts/name-based.html">name-based
    virtual host support</a> in Apache 1.1 requires Apache to know
    the IP address(es) of the host that httpd is running on. To get
    this address it uses either the global 
    the IP address(es) of the host that <program>httpd</program>
    is running on. To get this address it uses either the global
    <directive module="core">ServerName</directive>
    (if present) or calls the C function <code>gethostname</code>
    (which should return the same as typing "hostname" at the
+16 −13
Original line number Diff line number Diff line
@@ -27,13 +27,13 @@
    <p>The Apache HTTP Server is a modular program where the
    administrator can choose the functionality to include in the
    server by selecting a set of modules. The modules can be
    statically compiled into the <code>httpd</code> binary when the
    statically compiled into the <program>httpd</program> binary when the
    server is built. Alternatively, modules can be compiled as
    Dynamic Shared Objects (DSOs) that exist separately from the
    main <code>httpd</code> binary file. DSO modules may be
    main <program>httpd</program> binary file. DSO modules may be
    compiled at the time the server is built, or they may be
    compiled and added at a later time using the Apache Extension
    Tool (<a href="programs/apxs.html">apxs</a>).</p>
    Tool (<program>apxs</program>).</p>

    <p>This document describes how to use DSO modules as well as
    the theory behind their use.</p>
@@ -57,7 +57,7 @@
    <module>core</module> which cannot be put into a DSO
    itself. Practically all other distributed Apache modules can then
    be placed into a DSO by individually enabling the DSO build for
    them via <code>configure</code>'s
    them via <program>configure</program>'s
    <code>--enable-<em>module</em>=shared</code> option as discussed
    in the <a href="install.html">install documentation</a>. After a
    module is compiled into a DSO named <code>mod_foo.so</code> you
@@ -68,14 +68,14 @@

    <p>To simplify this creation of DSO files for Apache modules
    (especially for third-party modules) a new support program
    named <a href="programs/apxs.html">apxs</a> (<em>APache
    eXtenSion</em>) is available. It can be used to build DSO based
    named <program>apxs</program> (<dfn>APache
    eXtenSion</dfn>) is available. It can be used to build DSO based
    modules <em>outside of</em> the Apache source tree. The idea is
    simple: When installing Apache the <code>configure</code>'s
    simple: When installing Apache the <program>configure</program>'s
    <code>make install</code> procedure installs the Apache C
    header files and puts the platform-dependent compiler and
    linker flags for building DSO files into the <code>apxs</code>
    program. This way the user can use <code>apxs</code> to compile
    linker flags for building DSO files into the <program>apxs</program>
    program. This way the user can use <program>apxs</program> to compile
    his Apache module sources without the Apache distribution
    source tree and without having to fiddle with the
    platform-dependent compiler and linker flags for DSO
@@ -105,7 +105,10 @@ $ make install
        <code>mod_foo.so</code>: 

<example>
$ ./configure --add-module=module_type:/path/to/3rdparty/mod_foo.c --enable-foo=shared<br />
$ ./configure --add-module=<var>module_type</var>:/path/to/3rdparty/mod_foo.c \<br />
<indent>
  --enable-foo=shared<br />
</indent>
$ make install
</example>
      </li>
@@ -124,7 +127,7 @@ $ make install
        Build and install a <em>third-party</em> Apache module, say
        <code>mod_foo.c</code>, into its own DSO
        <code>mod_foo.so</code> <em>outside of</em> the Apache
        source tree using <a href="programs/apxs.html">apxs</a>: 
        source tree using <program>apxs</program>: 

<example>
$ cd /path/to/3rdparty<br />
@@ -252,7 +255,7 @@ $ apxs -i -a -n foo mod_foo.la
      the actual server process can be assembled at run-time via
      <directive module="mod_so">LoadModule</directive>
      <code>httpd.conf</code> configuration commands instead of
      <code>configure</code> options at build-time. For instance
      <program>configure</program> options at build-time. For instance
      this way one is able to run different server instances
      (standard &amp; SSL version, minimalistic &amp; powered up
      version [mod_perl, PHP3], <em>etc.</em>) with only one Apache
@@ -266,7 +269,7 @@ $ apxs -i -a -n foo mod_foo.la
      <em>etc.</em></li>

      <li>Easier Apache module prototyping because with the
      DSO/<code>apxs</code> pair you can both work outside the
      DSO/<program>apxs</program> pair you can both work outside the
      Apache source tree and only need an <code>apxs -i</code>
      command followed by an <code>apachectl restart</code> to
      bring a new version of your currently developed module into
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@
          <li>It is not possible to override or change the standard CGI
          variables using the environment manipulation directives.</li>

          <li>When <a href="suexec.html">suexec</a> is used to launch
          <li>When <program>suexec</program> is used to launch
          CGI scripts, the environment will be cleaned down to a set of
          <em>safe</em> variables before CGI scripts are launched. The
          list of <em>safe</em> variables is defined at compile-time in
+9 −8
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@
      ref="module">module</glossary> sources into Dynamic Shared Objects
      (<glossary ref="dso">DSO</glossary>s) and helps install them in the
      Apache Web server.<br />
      See: <a href="programs/apxs.html">Manual Page: apxs</a>
      See: Manual Page: <program>apxs</program>
    </dd>

    <dt><a name="authentication" id="authentication">Authentication</a></dt>
@@ -165,7 +165,7 @@
    <dt><a name="dynamicsharedobject" id="dynamicsharedobject">Dynamic
        Shared Object</a> <a name="dso" id="dso">(DSO)</a></dt>
    <dd><glossary ref="module">Modules</glossary> compiled separately from the
      Apache httpd binary that can be loaded on-demand.<br />
      Apache <program>httpd</program> binary that can be loaded on-demand.<br />
      See: <a href="dso.html">Dynamic Shared Object Support</a>
    </dd>

@@ -289,14 +289,15 @@
    <dt><a name="module" id="module">Module</a></dt>
    <dd>An independent part of a program.  Much of Apache's functionality is
      contained in modules that you can choose to include or exclude.  Modules
      that are compiled into the Apache httpd binary are called <em>static
      modules</em>, while modules that are stored separately and can be
      optionally loaded at run-time are called <em>dynamic modules</em> or
      <glossary ref="dso">DSOs</glossary>.  Modules that are included by default
      are called <em>base modules</em>.  Many modules are available for Apache
      that are compiled into the Apache <program>httpd</program> binary are
      called <dfn>static modules</dfn>, while modules that are stored
      separately and can be optionally loaded at run-time are called
      <dfn>dynamic modules</dfn> or <glossary ref="dso">DSOs</glossary>.
      Modules that are included by default
      are called <dfn>base modules</dfn>. Many modules are available for Apache
      that are not distributed as part of the Apache HTTP Server <glossary
      ref="tarball">tarball</glossary>.  These are referred to as
      <em>third-party modules</em>.<br />
      <dfn>third-party modules</dfn>.<br />
      See: <a href="mod/">Module Index</a>
    </dd>

Loading