---
title: Charmhub | Deploy apache2 using Charmhub - The Open Operator Collection
description: Deploy the latest version of apache2 on any cloud.
url: https://charmhub.io/apache2/configurations
---

# apache2

[Apache2 Charmers](https://charmhub.io/publisher/apache2-charmers "View all packages from Apache2 Charmers")

* [Apache2 Charmers](https://charmhub.io/publisher/apache2-charmers "View all packages from Apache2 Charmers")
* [Storage](https://charmhub.io/?filter=storage)

Platform:

22.04

20.04

18.04

16.04

14.04

stable 74

```
juju deploy apache2
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [apt-key-id](https://charmhub.io/apache2/configurations#apt-key-id)
* [apt-source](https://charmhub.io/apache2/configurations#apt-source)
* [config\_change\_command](https://charmhub.io/apache2/configurations#config_change_command)
* [disable\_modules](https://charmhub.io/apache2/configurations#disable_modules)
* [enable\_modules](https://charmhub.io/apache2/configurations#enable_modules)
* [extra\_packages](https://charmhub.io/apache2/configurations#extra_packages)
* [lb\_balancer\_extra\_params](https://charmhub.io/apache2/configurations#lb_balancer_extra_params)
* [lb\_balancer\_timeout](https://charmhub.io/apache2/configurations#lb_balancer_timeout)
* [logrotate\_count](https://charmhub.io/apache2/configurations#logrotate_count)
* [logrotate\_dateext](https://charmhub.io/apache2/configurations#logrotate_dateext)
* [logrotate\_rotate](https://charmhub.io/apache2/configurations#logrotate_rotate)
* [mpm\_maxclients](https://charmhub.io/apache2/configurations#mpm_maxclients)
* [mpm\_maxrequestsperchild](https://charmhub.io/apache2/configurations#mpm_maxrequestsperchild)
* [mpm\_maxsparethreads](https://charmhub.io/apache2/configurations#mpm_maxsparethreads)
* [mpm\_minsparethreads](https://charmhub.io/apache2/configurations#mpm_minsparethreads)
* [mpm\_serverlimit](https://charmhub.io/apache2/configurations#mpm_serverlimit)
* [mpm\_startservers](https://charmhub.io/apache2/configurations#mpm_startservers)
* [mpm\_threadlimit](https://charmhub.io/apache2/configurations#mpm_threadlimit)
* [mpm\_threadsperchild](https://charmhub.io/apache2/configurations#mpm_threadsperchild)
* [mpm\_type](https://charmhub.io/apache2/configurations#mpm_type)
* [nagios\_check\_http\_params](https://charmhub.io/apache2/configurations#nagios_check_http_params)
* [nagios\_context](https://charmhub.io/apache2/configurations#nagios_context)
* [nagios\_servicegroups](https://charmhub.io/apache2/configurations#nagios_servicegroups)
* [openid\_provider](https://charmhub.io/apache2/configurations#openid_provider)
* [package\_status](https://charmhub.io/apache2/configurations#package_status)
* [saml\_provider](https://charmhub.io/apache2/configurations#saml_provider)
* [server\_signature](https://charmhub.io/apache2/configurations#server_signature)
* [server\_tokens](https://charmhub.io/apache2/configurations#server_tokens)
* [servername](https://charmhub.io/apache2/configurations#servername)
* [ssl\_cert](https://charmhub.io/apache2/configurations#ssl_cert)
* [ssl\_certlocation](https://charmhub.io/apache2/configurations#ssl_certlocation)
* [ssl\_chain](https://charmhub.io/apache2/configurations#ssl_chain)
* [ssl\_chainlocation](https://charmhub.io/apache2/configurations#ssl_chainlocation)
* [ssl\_cipher\_suite](https://charmhub.io/apache2/configurations#ssl_cipher_suite)
* [ssl\_honor\_cipher\_order](https://charmhub.io/apache2/configurations#ssl_honor_cipher_order)
* [ssl\_key](https://charmhub.io/apache2/configurations#ssl_key)
* [ssl\_keylocation](https://charmhub.io/apache2/configurations#ssl_keylocation)
* [ssl\_protocol](https://charmhub.io/apache2/configurations#ssl_protocol)
* [trace\_enabled](https://charmhub.io/apache2/configurations#trace_enabled)
* [use\_rsyslog](https://charmhub.io/apache2/configurations#use_rsyslog)
* [vhost\_http\_template](https://charmhub.io/apache2/configurations#vhost_http_template)
* [vhost\_https\_template](https://charmhub.io/apache2/configurations#vhost_https_template)
* [vhost\_template\_vars](https://charmhub.io/apache2/configurations#vhost_template_vars)

[Learn about configurations >](https://juju.is/docs/juju/configuration#heading--application-configuration)

* apt-key-id | string

  A PGP key id. This is used with PPA and the source option to import a PGP public key for verifying repository signatures. This value must match the PPA for apt-source.
* apt-source | string

  From where to install packages. This is the PPA source line. Note that due to a bug in software-properties add-apt-repository cannot add the ondrej/apache2 ppa, so the default value here is a full sources line.
* config\_change\_command | string

  Default: reload

  The command to run whenever config has changed. Accepted values are
  "reload" or "restart" - any other value will mean neither is executed
  after a config change (which may be desired, if you're running a
  production server and would rather handle these out of band). Note:
  some variables like the mpm settings require a full restart to take effect.
* disable\_modules | string

  Default: status autoindex

  List of modules to disable
* enable\_modules | string

  List of modules to enable
* extra\_packages | string

  List of extra packages to be installed (e.g. commercial GeoIP package).
  This can be a string of packages space or comma separated.
  i.e "screen cowsay" or "screen,cowsay".
* lb\_balancer\_extra\_params | string

  Extra parameters to BalancerMember stanzas
* lb\_balancer\_timeout | int

  Default: 60

  How long the backends in mod\_proxy\_balancer will timeout, in seconds
* logrotate\_count | int

  Default: 365

  The number of days we want to retain logs for
* logrotate\_dateext | boolean

  Default: True

  Use daily extension like YYYMMDD instead of simply adding a number
* logrotate\_rotate | string

  Default: daily

  daily, weekly, monthly, or yearly?
* mpm\_maxclients | int

  Default: 2048

  Maximum number of connections that will be processed simultaneously. As of version 2.3.13, this is known as MaxRequestWorkers.
* mpm\_maxrequestsperchild | int

  Limit on the number of connections that an individual child server will handle during its life. As of version 2.3.9, this is known as MaxConnectionsPerChild.
* mpm\_maxsparethreads | int

  Default: 75

  Maximum number of idle threads available to handle request spikes.
* mpm\_minsparethreads | int

  Default: 25

  Minimum number of idle threads available to handle request spikes.
* mpm\_serverlimit | int

  Default: 128

  Upper limit on configurable number of processes. Changing this value requires a full restart.
* mpm\_startservers | int

  Default: 2

  Number of child server processes created at startup.
* mpm\_threadlimit | int

  Default: 64

  Sets the upper limit on the configurable number of threads per child process. Changing this value requires a full restart.
* mpm\_threadsperchild | int

  Default: 64

  Number of threads created by each child process.
* mpm\_type | string

  Default: worker

  worker or prefork
* nagios\_check\_http\_params | string

  The parameters to pass to the nrpe plugin check\_http.
* nagios\_context | string

  Default: juju

  Used by the nrpe-external-master subordinate charm. A string that will be prepended to instance name to set the host name in nagios. So for instance the hostname would be something like:
  juju-postgresql-0
  If you're running multiple environments with the same services in them this allows you to differentiate between them.
* nagios\_servicegroups | string

  A comma-separated list of nagios servicegroups. If left empty, the nagios\_context will be used as the servicegroup
* openid\_provider | string

  Comma seperated list of OpenID providers for authentication.
* package\_status | string

  Default: install

  The status of service-affecting packages will be set to this value in the dpkg database. Useful valid values are "install" and "hold".
* saml\_provider | string

  Saml provider for authentication.
* server\_signature | string

  Default: On

  Security setting. Set to one of On Off EMail
* server\_tokens | string

  Default: OS

  Security setting. Set to one of Full OS Minimal Minor Major Prod
* servername | string

  ServerName for vhost, defaults to the units public-address
* ssl\_cert | string

  base64 encoded server certificate. If the keyword 'SELFSIGNED'
  is used, the certificate and key will be autogenerated as
  self-signed.
* ssl\_certlocation | string

  Name and location of ssl certificate in charm/data directory.
  If not found, will ignore. Basename of this file will be used
  as the basename of the cert rooted at /etc/ssl/certs. Can
  be used in conjunction with the ssl\_cert parameter to specify
  the cert as a configuration setting.
* ssl\_chain | string

  base64 encoded chain certificates file. If ssl\_cert is
  specified as SELFSIGNED, this will be ignored.
* ssl\_chainlocation | string

  Name and location of the ssl chain file. Basename of this file
  will be used as the basename of the chain file rooted at
  /etc/ssl/certs.
* ssl\_cipher\_suite | string

  Default: EECDH+AESGCM+AES128:EDH+AESGCM+AES128:EECDH+AES128:EDH+AES128:ECDH+AESGCM+AES128:aRSA+AESGCM+AES128:ECDH+AES128:DH+AES128:aRSA+AES128:EECDH+AESGCM:EDH+AESGCM:EECDH:EDH:ECDH+AESGCM:aRSA+AESGCM:ECDH:DH:aRSA:HIGH:!MEDIUM:!aNULL:!NULL:!LOW:!3DES:!DSS:!EXP:!PSK:!SRP

  List of server cipher suites.
* ssl\_honor\_cipher\_order | string

  Default: On

  Enable server cipher suite preference.
* ssl\_key | string

  base64 encoded server certificate key. If ssl\_cert is
  specified as SELFSIGNED, this will be ignored.
* ssl\_keylocation | string

  Name and location of ssl keyfile in charm/data directory.
  If not found, will ignore. Basename of this file will be used
  as the basename of the key rooted at /etc/ssl/private. Can
  be used in conjuntion with the ssl\_key parameter to specify
  the key as a configuration setting.
* ssl\_protocol | string

  Default: ALL -SSLv2 -SSLv3

  SSL Protocols to enable.
* trace\_enabled | string

  Default: On

  Security setting. Set to one of On Off extended
* use\_rsyslog | boolean

  Change logging behaviour to log both access and error logs via rsyslog
* vhost\_http\_template | string

  Apache vhost template (base64 encoded).
* vhost\_https\_template | string

  Apache vhost template (base64 encoded).
* vhost\_template\_vars | string

  Additional custom variables for the vhost templating, in python dict format
