Apache web server packages and services

Apache web server is one of the most widely used web server software packages that supports a wide range of back ends, such as Ruby, and Python-based frameworks. It can serve a wide range of dynamic and static pages and applications. In this recipe, we will learn how to configure Apache web server packages and services.

How to do it...

  1. Configure a new minion called salt-minion-ubuntu as having the Ubuntu server operating system in the development environment.
  2. Create a new state directory in the development environment called apache.
  3. Create and edit /opt/salt-cookbook/development/apache/init.sls to have the following entries:
    apache_packages: pkg.installed: - pkgs: - apache2 apache_service: service: - name: apache2 ...

Get Salt Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.