Giter VIP home page Giter VIP logo

ansible-role-apache2-vhosts's Introduction

Ansible Role for Apache2 VirtualHost

Build Status GitHub tag GitHub license

Ansible Role for Apache2 VirtualHost Management.

Requirements

This role require Ansible 2.0 or higher.

This role was designed for Ubuntu Server 14.04 LTS and Ubuntu Server 16.04 LTS.

Role Variables

parameter required default choices comments
apache2_vhosts_base yes {{ apache2_vhosts_home }} VirtualHost base directory.
apache2_vhosts_custom_log yes defaults/main.yml Sets filename and format of log file.
apache2_vhosts_document_root yes defaults/main.yml Directory that forms the main document tree visible from the web.
apache2_vhosts_error_log yes defaults/main.yml Location where the server will log errors.
apache2_vhosts_gid no Specifying the GID for shared storage. NOTE: This value should only be set once before deploying and then never changed.
apache2_vhosts_handler_php yes defaults/main.yml Forces all matching files with \.php$ to be processed by a handler.
apache2_vhosts_hash_salt yes Specific password hash salt for sha512.
apache2_vhosts_home yes defaults/main.yml Location for the virtual host user home directory.
apache2_vhosts_http_port yes 80 Apache2 VirtualHost HTTP port.
apache2_vhosts_https_port yes 443 Apache2 VirtualHost HTTPS port.
apache2_vhosts_id yes Unique ID for virtual host shared among other services.
apache2_vhosts_pass yes Password for virtual host user.
apache2_vhosts_proxy_pass no Maps remote servers into the local server URL-space.
apache2_vhosts_proxy_pass_reverse no Adjusts the URL in HTTP response headers sent from a reverse proxied server.
apache2_vhosts_proxy_preserve_host yes
  • On
  • Off
Use incoming Host HTTP request header for proxy request.
apache2_vhosts_proxy_request no
  • On
  • Off
Enables forward (standard) proxy requests.
apache2_vhosts_proxy_via yes
  • On
  • Off
Information provided in the Via HTTP response header for proxied requests.
apache2_vhosts_redirect no defaults/main.yml Sends an external redirect asking the client to fetch a different URL.
apache2_vhosts_server_admin yes defaults/main.yml Email address that the server includes in error messages sent to the client.
apache2_vhosts_server_alias no []
  • list
  • []
Alternate names for a host used when matching requests to name-virtual hosts.
apache2_vhosts_server_name yes Hostname and port that the server uses to identify itself.
apache2_vhosts_ssl_certificate_chain_file no File of PEM-encoded Server CA Certificates.
apache2_vhosts_ssl_certificate_file no defaults/main.yml Server PEM-encoded X.509 certificate data file.
apache2_vhosts_ssl_certificate_key_file no defaults/main.yml Server PEM-encoded private key file.
apache2_vhosts_ssl_engine no
  • On
  • Off
SSL Engine Operation Switch.
apache2_vhosts_uid no Specifying the UID for shared storage. NOTE: This value should only be set once before deploying and then never changed.
apache2_vhosts_user yes Username for virtual host user.

Dependencies

No additional role dependencies.

Example Playbook

- hosts: all
  roles:
    - role: hswong3i.apache2_vhosts
      apache2_vhosts_hash_salt: "wi6Eereiwae7phae"
      apache2_vhosts_id: "example"
      apache2_vhosts_pass: "xaivoo9Z"
      apache2_vhosts_server_name: "example.com"
      apache2_vhosts_user: "example" 

License

Author Information

ansible-role-apache2-vhosts's People

Contributors

hswong3i avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.