-
-
Notifications
You must be signed in to change notification settings - Fork 881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Cannot create a location reference without' rather annoying and blocks some possibilities #1074
Comments
This check was introduced 6 years ago and was since then altered from this commit: ebd481d I don't see any usefulness having this check in the location part. Does @jfryman or someone else know the origin of this check. We can go on with this pattern by adding more arguments until we end up having all the resource parameters in the list. nginx allows it to define an empty location header. There is no need to add something to the location body. |
…of location Relates to voxpupuli#1074
I think a remove of the check gains more then having the check moved the server |
Fixed by #1075 |
…of location Relates to voxpupuli#1074
…of location Relates to voxpupuli#1074
The following example is not possible due to the current check of the locations paramters in
puppet-nginx/manifests/resource/location.pp
Line 233 in 0e56fa0
This would generate a config file like this.
But this is not possible, because the following error occurs:
I understand that this check was needed in combination with
use_default_location
to prevent the misconfiguration of the default location.My suggestion to this problem:
Remove the restriction in the location.pp file and move the check to the server.pp file.
Apply the check where the context switch is made.
The text was updated successfully, but these errors were encountered: