Skip to content

Throw an error if non-existing service is used in a VHOST line#17

Open
eserte wants to merge 2 commits intoperlbal:masterfrom
eserte:vhosts-complaining
Open

Throw an error if non-existing service is used in a VHOST line#17
eserte wants to merge 2 commits intoperlbal:masterfrom
eserte:vhosts-complaining

Conversation

@eserte
Copy link

@eserte eserte commented Sep 6, 2012

Currently it is possible to assign a non-existing service to a VHOST line, e.g.

VHOST example.org = does_not_exist
VHOST * = my_service

A request to example.org will be silently handled by my_service here. I think that Perlbal should complain instead. Unfortunately it does not seem to be possible to complain while the configuration is parsed, because the service definition can be done after the vhosts definition. But it is possible to complain when the non-existent service is about to be used.

Regards,
Slaven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant