nginx::resource::vhost { 'service-set1-abc':
server_name => ['start.sky.shoretel.com'],
ssl => true,
listen_port => '443',
ssl_cert => '/etc/nginx/shoretel_rproxy_crt.crt',
ssl_key => '/etc/nginx/shoretel_rproxy_crt.key',
use_default_location => false
}
nginx::resource::location { '/shoreauth/certauth':
proxy => 'https://ABC-servers$request_uri',
vhost => 'service-set1-abc',
proxy_set_header => ['Host $host','X-Real-IP $remote_addr','X-client-subject-dn $ssl_client_s_dn'],
}
This is my init.pp file i tried configuring a vhost here.The file gets created but the content of the file is not proper
the file should be something like this
server
{
_________
_______
location
{
___________
}
}
Instead it gets created like this
location
{
_________________
}
server
{
__________________
}
How do i get the location inside the server brackets...what changes are needed in the pp file?
Thanks in advance
Rahul
↧