Skip to content

gaspaio/puppetlabs-apache

 
 

Repository files navigation

Puppetlabs module for Apache

Apache is widely-used web server and this module will allow to configure various modules and setup virtual hosts with minimal effort

Basic usage

To install Apache

class {'apache':  }

To install the Apache PHP module

class {'apache::php': }

Configure a virtual host

You can easily configure many parameters of a virtual host. A minimal example is:

apache::vhost { 'www.example.com':
    priority        => '10',
    ipaddr          => '192.0.2.1',
    port            => '80',
}

A slightly more complicated example, which move the docroot and logfile to alternate location, might be:

apache::vhost { 'www.example.com':
    priority        => '10',
    ipaddr          => '192.0.2.1',
    port            => '80',
    docroot         => '/home/www.example.com/docroot/',
    logroot         => '/srv/www.example.com/logroot/',
    serveradmin     => '[email protected]',
    serveraliases   => ['example.com',],
}

Notes

Nothing of note.

Contributors

  • A cast of hundreds, hopefully you too soon

Copyright and License

Copyright (C) 2012 Puppet Labs Inc

Puppet Labs can be contacted at: [email protected]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Puppet Labs Apache module

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 62.9%
  • Puppet 37.1%