- changed status to resolved
Basically this is an enhancement request to allow binding to multiple addresses for the “httpd port”.
This may be important for hosts having multiple IP addresses, such as cluster nodes where addresses may be added and be removed dynamically.
The manual page is not very much explicit about “use address”, so I looked it up in p.y to find httpdlist which allows a list of httpdoptions. One of those is bindaddress.
However the implementation of bindaddress simply sets a variable from the parameter, replacing any previous setting.
When specifying multiple use address monit -t does not complain, but the httpd socket only binds to the last address given.
So there are two possible resolutions:
- Fix the grammar to allow only one bindaddress
- Fix the implementation to bind to all specified bind addresses
Note: Other options have a similar problem, like pemfile.
fix Issue
#1015: The 'set httpd' statement supports only one 'address' option. Shows warning if multiple 'address' options are used.→ <<cset ebf7a825f615>>