apache/vhosts¶
List of Apache virtual host configurations
Apache Virtual Hosts Parameter¶
Defines a list of virtual host configurations to render into a drop-in
config file. Each entry produces a <VirtualHost> block.
When empty (the default), no vhosts config file is placed and Apache serves from its default document root.
Fields per entry¶
server_name(required): TheServerNamedirectiveport(optional, default80): Listen portdocument_root(optional, default/var/www/html): Document root patherror_log(optional): Error log pathaccess_log(optional): Access log pathextra(optional): Additional directives to include in the vhost block
Usage Example¶
apache/vhosts:
- server_name: example.com
document_root: /var/www/example
- server_name: api.example.com
port: 8080
document_root: /var/www/api
extra: |
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
Objects that Reference apache/vhosts¶
- tasks apache-configure in Apache as part of Templates.[1].Path (used)
- templates apache-vhosts.conf.tmpl in Apache as part of Contents (used)
Objects used by apache/vhosts¶
Not used in current content packs