Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
passenger_pre_start (unlike other passenger settings that are not directly in the module, and can be easily added with an 'append' directive inside the vhost) has to be outside the scope of the
server {}
block. If this is too specific, I could alternatively make a different append variable that appends in the vhost file but outside that block.I believe it might be possible to put it in
http {}
also, but most examples show it following theserver {}
block, but outside of its scope.https://www.phusionpassenger.com/library/config/nginx/reference/#passenger_pre_start
Since the required stdlib version still doesn't seem to have a validate_url function, I just validated that it was a string, rather than trying to come up with a regex that would validate all possible valid URLs.
I added a test, but didn't add a test for the actual validation of parameters (most other params don't seem to have this at present).