wordpress-vhost-apache

Example:

# Apache wordpress vhost config.
- wordpress-vhost-apache:
    vhost_name: my_wordpress_site
    wp_title: My wordpress site
    use_https: true
    host: dev.frkl.io
    base_path: /var/www/wordpress

Description

n/a

Variables

Name Type Default Description

wp_title

string --

The name of the wordpress instance. Required

base_path

string /var/www

The wordpress project folders parent directory.

host

string localhost

The hostname of the server.

listen_ip

string _default_

The address to listen to, can be any of the following, optionally followed by a colon and a port number (or *): - The IP address of the virtual host; - A fully qualified domain name for the IP address of the virtual host (not recommended); - The character *, which acts as a wildcard and matches any IP address. - The string default, which is an alias for *

server_admin

string --

The email address to use in the vhost file and with letsencrypt, falls back to 'wp_admin_email.

use_https

boolean --

Request a lets-encrypt certificate and serve devpi via https (needs 'server_admin' or 'wp_admin_email' set).

Examples

Example 1

Apache wordpress vhost config.

Code
- wordpress-vhost-apache:
    vhost_name: my_wordpress_site
    wp_title: My wordpress site
    use_https: true
    host: dev.frkl.io
    base_path: /var/www/wordpress

Command-line

frecklecute wordpress-vhost-apache --help

Usage: frecklecute wordpress-vhost-apache [OPTIONS]

  Create Apache wordpress virtual host config.

Options:
  --wp-title TITLE              The name of the wordpress instance.
                                [required]
  --base-path BASE_PATH         The wordpress project folders parent
                                directory.  [default: /var/www]
  --host HOST                   The hostname of the server.  [default:
                                localhost]
  --listen-ip LISTEN_IP         The ip to listen to (necessary if using the
                                Apache webserver.  [default: _default_]
  --server-admin SERVER_ADMIN   The email address to use in the vhost file and
                                with letsencrypt, falls back to
                                'wp_admin_email.
  --use-https / --no-use-https  Request a lets-encrypt certificate and serve
                                devpi via https (needs 'server_admin' or
                                'wp_admin_email' set).
  --help                        Show this message and exit.