vhost_ssl.erb 363 B

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