GithubHelp home page GithubHelp logo

nascom / puppetlabs-apache Goto Github PK

View Code? Open in Web Editor NEW

This project forked from puppetlabs/puppetlabs-apache

0.0 11.0 0.0 313 KB

Puppet Labs Apache module

Home Page: https://forge.puppetlabs.com/puppetlabs/apache

License: Other

Ruby 55.81% Puppet 44.19%

puppetlabs-apache's Introduction

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::mod::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',
    vhost_name      => '192.0.2.1',
    port            => '80',
}

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

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

Dependencies

Some functionality is dependent on other modules:

Notes

Since Puppet cannot ensure that all parent directories exist you need to manage these yourself. In the more advanced example above, you need to ensure that /home/www.example.com and /srv/www.example.com directories exist.

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.

puppetlabs-apache's People

Contributors

adrienthebo avatar akumria avatar antaflos avatar bendylan avatar blkperl avatar bodepd avatar ccaum avatar cdelston avatar davidalden avatar ericknecht avatar ghoneycutt avatar hakamadare avatar haus avatar hunner avatar inkblot avatar jamtur01 avatar jtopjian avatar kbarber avatar knowshan avatar kristofser avatar lboynton avatar malc0mn avatar nanliu avatar obokaman-com avatar ody avatar reidmv avatar richardc avatar rwstauner avatar sorenisanerd avatar wulff avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.