Skip to content

Commit

Permalink
Added code example for setenv class
Browse files Browse the repository at this point in the history
Example usage is based on the Apache docs' own example for the SetEnv directive: 
http://httpd.apache.org/docs/2.2/mod/mod_env.html#setenv

Change requested here:
https://tickets.puppetlabs.com/browse/DOCUMENT-204
  • Loading branch information
psoloway committed Dec 30, 2014
1 parent 6aff757 commit 9416be7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,14 @@ Sets the servername corresponding to the hostname you connect to the virtual hos

Used by HTTPD to set environment variables for vhosts. Defaults to '[]'.

Example:

```puppet
apache::vhost {'setenv.example.com':
setenv => ['SPECIAL_PATH /foo/bin'],
}
```

#####`setenvif`

Used by HTTPD to conditionally set environment variables for vhosts. Defaults to '[]'.
Expand Down

0 comments on commit 9416be7

Please sign in to comment.