The Apache HTTP Server Project's goal is to build a secure, efficient and extensible HTTP server as standards-compliant open source software. The result has long been the number one web server on the Internet. Installing this package results in a full installation, including the configuration files, init scripts and support scripts.
Dependências: apache2-bin, apache2-data, apache2-utils, media-types, perl, procps
a2disconf
Enable or disable an apache2 configuration file
root@kali:~# man a2disconf
A2ENCONF(8) System Manager's Manual A2ENCONF(8)
NAME
a2enconf, a2disconf - enable or disable an apache2 configuration file
SYNOPSIS
a2enconf [-q|--quiet] [-m|--maintmode] [ configuration ]
a2disconf [-q|--quiet] [-m|--maintmode] [-p|--purge] [ configuration ]
DESCRIPTION
This manual page documents briefly the a2enconf and a2disconf commands.
a2enconf is a script that enables the specified configuration file within
the apache2 configuration. It does this by creating symlinks within
/etc/apache2/conf-enabled. Likewise, a2disconf disables a specific con-
figuration part by removing those symlinks. It is not an error to enable
a configuration which is already enabled, or to disable one which is al-
ready disabled.
Note that many configuration file may have a dependency to specific mod-
ules. Unlike module dependencies, these are not resolved automatically.
Configuration fragments stored in the conf-available directory are consid-
ered non-essential or being installed and manged by reverse dependencies
(e.g. web scripts).
OPTIONS
-q, --quiet
Don't show informative messages.
-m, --maintmode
Enables the maintainer mode, that is the program invocation is ef-
fectuated automatically by a maintainer script. This switch should
not be used by end users.
-p, --purge
When disabling a module, purge all traces of the module in the in-
ternal state data base.
EXIT STATUS
a2enconf and a2disconf exit with status 0 if all configurations are
processed successfully, 1 if errors occur, 2 if an invalid option was
used.
EXAMPLES
a2enconf security
a2disconf charset
Enables Apache security directives stored in the security configuration
files, and disables the charset configuration.
ENVIRONMENT
The following environment variables may be specified.
dir_suffix
Distinguish different instances of apache2. Suffixes /etc/apache2
to build a new APACHE_CONFDIR
APACHE_CONFDIR
Override the entire configuraation directory (/etc/apache2$dir_suf-
fix)
APACHE_ENVVARS
Override the default envvars file (/etc/apache2$dir_suffix/envvars)
APACHE_{MODS,CONF,SITES}_AVAIL
Override the path to the directory holding the available snippets
for modules, configuration and sites.
APACHE_{MODS,CONF,SITES}_ENABLED
Override the path to the directory holding the enabled snippets for
modules, configuration and sites. For example, in a multi-instance
setup, you can set dir_suffix=-myinstance and override
APACHE_MODS_AVAIL back to /etc/apache2/mods-available to have a
single store of snippets for all instances
APACHE_STATE_DIRECTORY
Override the path to the state directory (/var/lib/apache2)
FILES
/etc/apache2/conf-available
Directory with files giving information on available configuration
files.
/etc/apache2/conf-enabled
Directory with links to the files in conf-available for enabled
configuration files.
SEE ALSO
apache2ctl(8), a2enmod(8), a2dismod(8), a2ensite(8), a2dissite(8).
AUTHOR
This manual page was written by Arno Toell <debian@toell.net> for the De-
bian GNU/Linux distribution, as it is a Debian-specific script with the
package.
14 February 2012 A2ENCONF(8)
a2dismod
Enable or disable an apache2 module
root@kali:~# man a2dismod
A2ENMOD(8) System Manager's Manual A2ENMOD(8)
NAME
a2enmod, a2dismod - enable or disable an apache2 module
SYNOPSIS
a2enmod [-q|--quiet] [-m|--maintmode] [ module ]
a2dismod [-q|--quiet] [-f|--force] [-m|--maintmode] [-p|--purge] [ module
]
DESCRIPTION
This manual page documents briefly the a2enmod and a2dismod commands.
a2enmod is a script that enables the specified module within the apache2
configuration. It does this by creating symlinks within
/etc/apache2/mods-enabled. Likewise, a2dismod disables a module by remov-
ing those symlinks. It is not an error to enable a module which is al-
ready enabled, or to disable one which is already disabled.
Note that many modules have, in addition to a .load file, an associated
.conf file. Enabling the module puts the configuration directives in the
.conf file as directives into the main server context of apache2.
OPTIONS
-q, --quiet
Don't show informative messages.
-f, --force
When disabling a module, also cascade disables all modules that de-
pends on it.
-m, --maintmode
Enables the maintainer mode, that is the program invocation is ef-
fectuated automatically by a maintainer script. This switch should
not be used by end users.
-p, --purge
When disabling a module, purge all traces of the module in the in-
ternal state data base.
EXIT STATUS
a2enmod and a2dismod exit with status 0 if all modules are processed suc-
cessfully, 1 if errors occur, 2 if an invalid option was used.
EXAMPLES
a2enmod imagemap
a2dismod mime_magic
Enables the mod_imagemap module, and disables the mod_mime_magic module.
ENVIRONMENT
The following environment variables may be specified.
dir_suffix
Distinguish different instances of apache2. Suffixes /etc/apache2
to build a new APACHE_CONFDIR
APACHE_CONFDIR
Override the entire configuraation directory (/etc/apache2$dir_suf-
fix)
APACHE_ENVVARS
Override the default envvars file (/etc/apache2$dir_suffix/envvars)
APACHE_{MODS,CONF,SITES}_AVAIL
Override the path to the directory holding the available snippets
for modules, configuration and sites.
APACHE_{MODS,CONF,SITES}_ENABLED
Override the path to the directory holding the enabled snippets for
modules, configuration and sites. For example, in a multi-instance
setup, you can set dir_suffix=-myinstance and override
APACHE_MODS_AVAIL back to /etc/apache2/mods-available to have a
single store of snippets for all instances
APACHE_STATE_DIRECTORY
Override the path to the state directory (/var/lib/apache2)
FILES
/etc/apache2/mods-available
Directory with files giving information on available modules.
/etc/apache2/mods-enabled
Directory with links to the files in mods-available for enabled
modules.
SEE ALSO
apache2ctl(8), a2enconf(8), a2disconf(8), a2ensite(8), a2dissite(8).
AUTHOR
This manual page was written by Daniel Stone <daniel@sfarc.net> for the
Debian GNU/Linux distribution, as it is a Debian-specific script with the
package.
12 October 2006 A2ENMOD(8)
a2dissite
Enable or disable an apache2 site / virtual host
root@kali:~# man a2dissite
A2ENSITE(8) System Manager's Manual A2ENSITE(8)
NAME
a2ensite, a2dissite - enable or disable an apache2 site / virtual host
SYNOPSIS
a2ensite [-q|--quiet] [-m|--maintmode] [ site ]
a2dissite [-q|--quiet] [-m|--maintmode] [-p|--purge] [ site ]
DESCRIPTION
This manual page documents briefly the a2ensite and a2dissite commands.
a2ensite is a script that enables the specified site (which contains a
<VirtualHost> block) within the apache2 configuration. It does this by
creating symlinks within /etc/apache2/sites-enabled. Likewise, a2dissite
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 dis-
abled.
Apache treats the very first virtual host enabled specially as every re-
quest not matching any actual directive is being redirected there. Thus it
should be called 000-default in order to sort before the remaining hosts
to be loaded first.
OPTIONS
-q, --quiet
Don't show informative messages.
-m, --maintmode
Enables the maintainer mode, that is the program invocation is ef-
fectuated automatically by a maintainer script. This switch should
not be used by end users.
-p, --purge
When disabling a module, purge all traces of the module in the in-
ternal state data base.
EXIT STATUS
a2ensite and a2dissite exit with status 0 if all sites are processed suc-
cessfully, 1 if errors occur, 2 if an invalid option was used.
EXAMPLES
a2dissite 000-default
Disables the default site.
ENVIRONMENT
The following environment variables may be specified.
dir_suffix
Distinguish different instances of apache2. Suffixes /etc/apache2
to build a new APACHE_CONFDIR
APACHE_CONFDIR
Override the entire configuraation directory (/etc/apache2$dir_suf-
fix)
APACHE_ENVVARS
Override the default envvars file (/etc/apache2$dir_suffix/envvars)
APACHE_{MODS,CONF,SITES}_AVAIL
Override the path to the directory holding the available snippets
for modules, configuration and sites.
APACHE_{MODS,CONF,SITES}_ENABLED
Override the path to the directory holding the enabled snippets for
modules, configuration and sites. For example, in a multi-instance
setup, you can set dir_suffix=-myinstance and override
APACHE_MODS_AVAIL back to /etc/apache2/mods-available to have a
single store of snippets for all instances
APACHE_STATE_DIRECTORY
Override the path to the state directory (/var/lib/apache2)
FILES
/etc/apache2/sites-available
Directory with files giving information on available sites.
/etc/apache2/sites-enabled
Directory with links to the files in sites-available for enabled
sites.
SEE ALSO
apache2ctl(8), a2enmod(8), a2dismod(8), a2enconf(8), a2disconf(8).
AUTHOR
This manual page was written by Stefan Fritsch <sf@debian.org> (based on
the a2enmod manual page by Daniel Stone <daniel@sfarc.net>) for the Debian
GNU/Linux distribution.
8 June 2007 A2ENSITE(8)
a2enconf
Enable or disable an apache2 configuration file
root@kali:~# man a2enconf
A2ENCONF(8) System Manager's Manual A2ENCONF(8)
NAME
a2enconf, a2disconf - enable or disable an apache2 configuration file
SYNOPSIS
a2enconf [-q|--quiet] [-m|--maintmode] [ configuration ]
a2disconf [-q|--quiet] [-m|--maintmode] [-p|--purge] [ configuration ]
DESCRIPTION
This manual page documents briefly the a2enconf and a2disconf commands.
a2enconf is a script that enables the specified configuration file within
the apache2 configuration. It does this by creating symlinks within
/etc/apache2/conf-enabled. Likewise, a2disconf disables a specific con-
figuration part by removing those symlinks. It is not an error to enable
a configuration which is already enabled, or to disable one which is al-
ready disabled.
Note that many configuration file may have a dependency to specific mod-
ules. Unlike module dependencies, these are not resolved automatically.
Configuration fragments stored in the conf-available directory are consid-
ered non-essential or being installed and manged by reverse dependencies
(e.g. web scripts).
OPTIONS
-q, --quiet
Don't show informative messages.
-m, --maintmode
Enables the maintainer mode, that is the program invocation is ef-
fectuated automatically by a maintainer script. This switch should
not be used by end users.
-p, --purge
When disabling a module, purge all traces of the module in the in-
ternal state data base.
EXIT STATUS
a2enconf and a2disconf exit with status 0 if all configurations are
processed successfully, 1 if errors occur, 2 if an invalid option was
used.
EXAMPLES
a2enconf security
a2disconf charset
Enables Apache security directives stored in the security configuration
files, and disables the charset configuration.
ENVIRONMENT
The following environment variables may be specified.
dir_suffix
Distinguish different instances of apache2. Suffixes /etc/apache2
to build a new APACHE_CONFDIR
APACHE_CONFDIR
Override the entire configuraation directory (/etc/apache2$dir_suf-
fix)
APACHE_ENVVARS
Override the default envvars file (/etc/apache2$dir_suffix/envvars)
APACHE_{MODS,CONF,SITES}_AVAIL
Override the path to the directory holding the available snippets
for modules, configuration and sites.
APACHE_{MODS,CONF,SITES}_ENABLED
Override the path to the directory holding the enabled snippets for
modules, configuration and sites. For example, in a multi-instance
setup, you can set dir_suffix=-myinstance and override
APACHE_MODS_AVAIL back to /etc/apache2/mods-available to have a
single store of snippets for all instances
APACHE_STATE_DIRECTORY
Override the path to the state directory (/var/lib/apache2)
FILES
/etc/apache2/conf-available
Directory with files giving information on available configuration
files.
/etc/apache2/conf-enabled
Directory with links to the files in conf-available for enabled
configuration files.
SEE ALSO
apache2ctl(8), a2enmod(8), a2dismod(8), a2ensite(8), a2dissite(8).
AUTHOR
This manual page was written by Arno Toell <debian@toell.net> for the De-
bian GNU/Linux distribution, as it is a Debian-specific script with the
package.
14 February 2012 A2ENCONF(8)
a2enmod
Enable or disable an apache2 module
root@kali:~# man a2enmod
A2ENMOD(8) System Manager's Manual A2ENMOD(8)
NAME
a2enmod, a2dismod - enable or disable an apache2 module
SYNOPSIS
a2enmod [-q|--quiet] [-m|--maintmode] [ module ]
a2dismod [-q|--quiet] [-f|--force] [-m|--maintmode] [-p|--purge] [ module
]
DESCRIPTION
This manual page documents briefly the a2enmod and a2dismod commands.
a2enmod is a script that enables the specified module within the apache2
configuration. It does this by creating symlinks within
/etc/apache2/mods-enabled. Likewise, a2dismod disables a module by remov-
ing those symlinks. It is not an error to enable a module which is al-
ready enabled, or to disable one which is already disabled.
Note that many modules have, in addition to a .load file, an associated
.conf file. Enabling the module puts the configuration directives in the
.conf file as directives into the main server context of apache2.
OPTIONS
-q, --quiet
Don't show informative messages.
-f, --force
When disabling a module, also cascade disables all modules that de-
pends on it.
-m, --maintmode
Enables the maintainer mode, that is the program invocation is ef-
fectuated automatically by a maintainer script. This switch should
not be used by end users.
-p, --purge
When disabling a module, purge all traces of the module in the in-
ternal state data base.
EXIT STATUS
a2enmod and a2dismod exit with status 0 if all modules are processed suc-
cessfully, 1 if errors occur, 2 if an invalid option was used.
EXAMPLES
a2enmod imagemap
a2dismod mime_magic
Enables the mod_imagemap module, and disables the mod_mime_magic module.
ENVIRONMENT
The following environment variables may be specified.
dir_suffix
Distinguish different instances of apache2. Suffixes /etc/apache2
to build a new APACHE_CONFDIR
APACHE_CONFDIR
Override the entire configuraation directory (/etc/apache2$dir_suf-
fix)
APACHE_ENVVARS
Override the default envvars file (/etc/apache2$dir_suffix/envvars)
APACHE_{MODS,CONF,SITES}_AVAIL
Override the path to the directory holding the available snippets
for modules, configuration and sites.
APACHE_{MODS,CONF,SITES}_ENABLED
Override the path to the directory holding the enabled snippets for
modules, configuration and sites. For example, in a multi-instance
setup, you can set dir_suffix=-myinstance and override
APACHE_MODS_AVAIL back to /etc/apache2/mods-available to have a
single store of snippets for all instances
APACHE_STATE_DIRECTORY
Override the path to the state directory (/var/lib/apache2)
FILES
/etc/apache2/mods-available
Directory with files giving information on available modules.
/etc/apache2/mods-enabled
Directory with links to the files in mods-available for enabled
modules.
SEE ALSO
apache2ctl(8), a2enconf(8), a2disconf(8), a2ensite(8), a2dissite(8).
AUTHOR
This manual page was written by Daniel Stone <daniel@sfarc.net> for the
Debian GNU/Linux distribution, as it is a Debian-specific script with the
package.
12 October 2006 A2ENMOD(8)
a2ensite
Enable or disable an apache2 site / virtual host
root@kali:~# man a2ensite
A2ENSITE(8) System Manager's Manual A2ENSITE(8)
NAME
a2ensite, a2dissite - enable or disable an apache2 site / virtual host
SYNOPSIS
a2ensite [-q|--quiet] [-m|--maintmode] [ site ]
a2dissite [-q|--quiet] [-m|--maintmode] [-p|--purge] [ site ]
DESCRIPTION
This manual page documents briefly the a2ensite and a2dissite commands.
a2ensite is a script that enables the specified site (which contains a
<VirtualHost> block) within the apache2 configuration. It does this by
creating symlinks within /etc/apache2/sites-enabled. Likewise, a2dissite
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 dis-
abled.
Apache treats the very first virtual host enabled specially as every re-
quest not matching any actual directive is being redirected there. Thus it
should be called 000-default in order to sort before the remaining hosts
to be loaded first.
OPTIONS
-q, --quiet
Don't show informative messages.
-m, --maintmode
Enables the maintainer mode, that is the program invocation is ef-
fectuated automatically by a maintainer script. This switch should
not be used by end users.
-p, --purge
When disabling a module, purge all traces of the module in the in-
ternal state data base.
EXIT STATUS
a2ensite and a2dissite exit with status 0 if all sites are processed suc-
cessfully, 1 if errors occur, 2 if an invalid option was used.
EXAMPLES
a2dissite 000-default
Disables the default site.
ENVIRONMENT
The following environment variables may be specified.
dir_suffix
Distinguish different instances of apache2. Suffixes /etc/apache2
to build a new APACHE_CONFDIR
APACHE_CONFDIR
Override the entire configuraation directory (/etc/apache2$dir_suf-
fix)
APACHE_ENVVARS
Override the default envvars file (/etc/apache2$dir_suffix/envvars)
APACHE_{MODS,CONF,SITES}_AVAIL
Override the path to the directory holding the available snippets
for modules, configuration and sites.
APACHE_{MODS,CONF,SITES}_ENABLED
Override the path to the directory holding the enabled snippets for
modules, configuration and sites. For example, in a multi-instance
setup, you can set dir_suffix=-myinstance and override
APACHE_MODS_AVAIL back to /etc/apache2/mods-available to have a
single store of snippets for all instances
APACHE_STATE_DIRECTORY
Override the path to the state directory (/var/lib/apache2)
FILES
/etc/apache2/sites-available
Directory with files giving information on available sites.
/etc/apache2/sites-enabled
Directory with links to the files in sites-available for enabled
sites.
SEE ALSO
apache2ctl(8), a2enmod(8), a2dismod(8), a2enconf(8), a2disconf(8).
AUTHOR
This manual page was written by Stefan Fritsch <sf@debian.org> (based on
the a2enmod manual page by Daniel Stone <daniel@sfarc.net>) for the Debian
GNU/Linux distribution.
8 June 2007 A2ENSITE(8)
a2query
Retrieve runtime configuration from a local Apache 2 HTTP server
root@kali:~# a2query --help
/usr/sbin/a2query version [unknown] calling Getopt::Std::getopts (version 1.14 [paranoid]),
running under Perl version 5.40.1.
Usage: a2query [-OPTIONS [-MORE_OPTIONS]] [--] [PROGRAM_ARG1 ...]
The following single-character options are accepted:
With arguments: -m -s -c
Boolean (without arguments): -h -a -v -M -d -q
Options may be merged together. -- stops processing of options.
Space is not required between options and their arguments.
For more details run
perldoc -F /usr/sbin/a2query
[Now continuing due to backward compatibility and excessive paranoia.
See 'perldoc Getopt::Std' about $Getopt::Std::STANDARD_HELP_VERSION.]
apache2ctl
Apache HTTP server control interface
root@kali:~# apache2ctl -h
Usage: /usr/sbin/apache2 [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed vhost settings
-t -D DUMP_RUN_CFG : show parsed run settings
-S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t -D DUMP_INCLUDES: show all included configuration files
-t : run syntax check for config files
-T : start without DocumentRoot(s) check
-X : debug mode (only one worker, do not detach)
apachectl
Apache HTTP server control interface
root@kali:~# apachectl -h
Usage: /usr/sbin/apache2 [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed vhost settings
-t -D DUMP_RUN_CFG : show parsed run settings
-S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t -D DUMP_INCLUDES: show all included configuration files
-t : run syntax check for config files
-T : start without DocumentRoot(s) check
-X : debug mode (only one worker, do not detach)