167 lines
3.4 KiB
HTML
167 lines
3.4 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of A2ENSITE</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>A2ENSITE</H1>
|
|
Section: Maintenance Commands (8)<BR>Updated: 8 June 2007<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
a2ensite, a2dissite - enable or disable an apache2 site / virtual host
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>a2ensite</B>
|
|
|
|
[ [-q|--quiet]
|
|
<I>site</I>]
|
|
|
|
<P>
|
|
|
|
<B>a2dissite</B>
|
|
|
|
[ [-q|--quiet]
|
|
<I>site</I>]
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
This manual page documents briefly the
|
|
<B>a2ensite</B>
|
|
|
|
and
|
|
<B>a2dissite</B>
|
|
|
|
commands.
|
|
<P>
|
|
|
|
<B>a2ensite</B>
|
|
|
|
is a script that enables the specified site (which contains a <VirtualHost> block) within the
|
|
<B>apache2</B>
|
|
|
|
configuration. It does this by creating symlinks within
|
|
<B>/etc/apache2/sites-enabled</B>.
|
|
|
|
Likewise,
|
|
<B>a2dissite</B>
|
|
|
|
disables a site by removing those symlinks. It is not an error to
|
|
enable a site which is already enabled, or to disable one which is
|
|
already disabled.
|
|
<P>
|
|
|
|
Apache treats the very first virtual host enabled specially as every request not
|
|
matching any actual directive is being redirected there. Thus it should be called
|
|
<B>000-default</B>
|
|
|
|
in order to sort before the remaining hosts to be loaded first.
|
|
<A NAME="lbAE"> </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"> </A>
|
|
<H2>EXIT STATUS</H2>
|
|
|
|
<B>a2ensite</B>
|
|
|
|
and
|
|
<B>a2dissite</B>
|
|
|
|
exit with status 0 if all
|
|
<I>site</I>s
|
|
|
|
are processed successfully, 1 if errors occur, 2 if an invalid option was used.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
<DL COMPACT><DT id="4"><DD>
|
|
<B>a2dissite 000-default</B>
|
|
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
Disables the
|
|
<B>default</B>
|
|
|
|
site.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="5"><B>/etc/apache2/sites-available</B>
|
|
|
|
<DD>
|
|
Directory with files giving information on available sites.
|
|
<DT id="6"><B>/etc/apache2/sites-enabled</B>
|
|
|
|
<DD>
|
|
Directory with links to the files in
|
|
<B>sites-available</B>
|
|
|
|
for enabled sites.
|
|
</DL>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+apache2ctl">apache2ctl</A></B>(8).
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
This manual page was written by Stefan Fritsch <<A HREF="mailto:sf@debian.org">sf@debian.org</A>> (based on the a2enmod manual
|
|
page by Daniel Stone <<A HREF="mailto:daniel@sfarc.net">daniel@sfarc.net</A>>) for the Debian GNU/Linux distribution.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </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>
|