Skip to content

Commit 9416be7

Browse files
committed
Added code example for setenv class
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
1 parent 6aff757 commit 9416be7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,6 +1426,14 @@ Sets the servername corresponding to the hostname you connect to the virtual hos
14261426

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

1429+
Example:
1430+
1431+
```puppet
1432+
apache::vhost {'setenv.example.com':
1433+
setenv => ['SPECIAL_PATH /foo/bin'],
1434+
}
1435+
```
1436+
14291437
#####`setenvif`
14301438

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

0 commit comments

Comments
 (0)