You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've confirmed that all the params coming into this class are set properly. I threw fail() commands into nginx::resources::location at the beginning, at the if $proxy != undef check and just before the 'Cannot create a location reference without a www_root...' check as well. All of them show proxy as having the correct value.
fail("(precheck) proxy: $proxy; vhost: $vhost; loc: $location; headers: $proxy_set_headers")
if (($www_root == undef) and ($proxy == undef) and ($location_alias == undef) and ($stub_status == undef) and ($fastcgi == undef) and ($location_custom_cfg == undef)) {
fail("(check failed) proxy: $proxy; vhost: $vhost; loc: $location; headers: $proxy_set_headers")
fail('Cannot create a location reference without a www_root, proxy, location_alias, fastcgi, stub_status, or location_custom_cfg defined')
}
Precheck comes back with the correct values. However, when I comment out the precheck fail(), the check failed one comes back with undef proxy and proxy_set_headers.
I've tried this with the latest from Git as well as the 0.0.10 from Puppet Forge to the same effect. I will admit that I'm running Ruby 1.8.7, is that perhaps the issue? I would be happy to write the fix but this sudden undef thing has me up against a brick wall. If someone can point me in the right direction, it would be much appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
On the vhost resource set use_default_location to false. If not, a default location is created for the vhost, but it will be created without a valid configuration if you haven't set www_root, proxy, fastcgi, or location_custom_cfg configuration on the vhost as well.
I'm getting this error despite passing the proxy param. This is what I'm using:
I've confirmed that all the params coming into this class are set properly. I threw fail() commands into nginx::resources::location at the beginning, at the if $proxy != undef check and just before the 'Cannot create a location reference without a www_root...' check as well. All of them show proxy as having the correct value.
Precheck comes back with the correct values. However, when I comment out the precheck fail(), the check failed one comes back with undef proxy and proxy_set_headers.
I've tried this with the latest from Git as well as the 0.0.10 from Puppet Forge to the same effect. I will admit that I'm running Ruby 1.8.7, is that perhaps the issue? I would be happy to write the fix but this sudden undef thing has me up against a brick wall. If someone can point me in the right direction, it would be much appreciated. Thanks!
The text was updated successfully, but these errors were encountered: