vhost_ssl.pp 436 B

1234567891011121314151617
  1. include nginx
  2. nginx::resource::vhost { 'test2.local test2':
  3. ensure => present,
  4. www_root => '/var/www/nginx-default',
  5. ssl => true,
  6. ssl_cert => 'puppet:///modules/sslkey/whildcard_mydomain.crt',
  7. ssl_key => 'puppet:///modules/sslkey/whildcard_mydomain.key'
  8. }
  9. nginx::resource::location { 'test2.local-bob':
  10. ensure => present,
  11. www_root => '/var/www/bob',
  12. location => '/bob',
  13. vhost => 'test2.local test2',
  14. }