man-pages/man8/a2enconf.8.html
2021-03-31 01:06:50 +01:00

177 lines
3.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of A2ENCONF</TITLE>
</HEAD><BODY>
<H1>A2ENCONF</H1>
Section: Maintenance Commands (8)<BR>Updated: 14 February 2012<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
a2enconf, a2disconf - enable or disable an apache2 configuration file
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>a2enconf</B>
[ [-q|--quiet]
<I>configuration</I>]
<P>
<B>a2disconf</B>
[ [-q|--quiet]
<I>configuration</I>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
This manual page documents briefly the
<B>a2enconf</B>
and
<B>a2disconf</B>
commands.
<P>
<B>a2enconf</B>
is a script that enables the specified configuration file within the
<B>apache2</B>
configuration. It does this by creating symlinks within
<B>/etc/apache2/conf-enabled</B>.
Likewise,
<B>a2disconf</B>
disables a specific configuration part by removing those symlinks. It is not an
error to enable a configuration which is already enabled, or to disable one which is
already disabled.
<P>
Note that many configuration file may have a dependency to specific modules.
Unlike module dependencies, these are not resolved automatically. Configuration
fragments stored in the conf-available directory are considered non-essential or
being installed and manged by reverse dependencies (e.g. web scripts).
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-q, --quiet</B>
<DD>
Don't show informative messages.
<DT id="2"><B>-m, --maintmode</B>
<DD>
Enables the maintainer mode, that is the program invocation is effectuated
automatically by a maintainer script. This switch should not be used by end
users.
<DT id="3"><B>-p, --purge</B>
<DD>
When disabling a module, purge all traces of the module in the internal state
data base.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>EXIT STATUS</H2>
<B>a2enconf</B>
and
<B>a2disconf</B>
exit with status 0 if all
<I>configuration</I>s
are processed successfully, 1 if errors occur, 2 if an invalid option was used.
<A NAME="lbAG">&nbsp;</A>
<H2>EXAMPLES</H2>
<DL COMPACT><DT id="4"><DD>
<B>a2enconf security</B>
<BR>
<B>a2disconf charset</B>
</DL>
<P>
Enables Apache security directives stored in the
<B>security</B>
configuration files, and disables the
<B>charset</B>
configuration.
<A NAME="lbAH">&nbsp;</A>
<H2>FILES</H2>
<DL COMPACT>
<DT id="5"><B>/etc/apache2/conf-available</B>
<DD>
Directory with files giving information on available configuration files.
<DT id="6"><B>/etc/apache2/conf-enabled</B>
<DD>
Directory with links to the files in
<B>conf-available</B>
for enabled configuration files.
</DL>
<A NAME="lbAI">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?8+apache2ctl">apache2ctl</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+a2enmod">a2enmod</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+a2dismod">a2dismod</A></B>(8).
<A NAME="lbAJ">&nbsp;</A>
<H2>AUTHOR</H2>
This manual page was written by Arno Toell &lt;<A HREF="mailto:debian@toell.net">debian@toell.net</A>&gt; for the Debian
GNU/Linux distribution, as it is a Debian-specific script with the package.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="7"><A HREF="#lbAB">NAME</A><DD>
<DT id="8"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="9"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="10"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="11"><A HREF="#lbAF">EXIT STATUS</A><DD>
<DT id="12"><A HREF="#lbAG">EXAMPLES</A><DD>
<DT id="13"><A HREF="#lbAH">FILES</A><DD>
<DT id="14"><A HREF="#lbAI">SEE ALSO</A><DD>
<DT id="15"><A HREF="#lbAJ">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:10 GMT, March 31, 2021
</BODY>
</HTML>