Apache Configuration


title: “Apache Configuration”
date: 2016-01-13T20:25:01
slug: apache-configuration


class { 'apache': # use the "apache" module
 default\_vhost => false, # don't use the default vhost
 default\_mods => false, # don't load default mods
 mpm\_module => 'prefork', # use the "prefork" mpm\_module
 }
 include apache::mod::php # include mod php
 apache::vhost { 'example.com': # create a vhost called "example.com"
 port => '80', # use port 80
 docroot => '/var/www/html', # set the docroot to the /var/www/html
 }
 apache::listen { '80': } #Create Listen Entry
 apache::vhost { 'first.example.com':
 ip => '10.0.0.10',
 docroot => '/var/www/first',
 ip\_based => true,
}
Print Friendly, PDF & Email