IIS: Creates IIS_VERSION definition

This definition is currently used in two different circumstances: Report with
accuracy that the server is an IIS  (status call), and also show the amount of
loaded remote rules on the windows logs. Different from Apache which loads the
rules twice, IIS just do it once.
This commit is contained in:
Felipe Zimmerle
2014-12-05 05:50:27 -08:00
parent 6c0cdab35a
commit f6d6cea015
4 changed files with 17 additions and 1 deletions

View File

@@ -768,9 +768,16 @@ static int hook_post_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_t
* Checking if it is not the first time that we are in this very function.
* We want to show the messages below during the start and the reload.
*
* Turns out that IIS version does not hit it twice, thus, we have to show
* the message in the first (and unique) opportunity.
*/
#ifdef VERSION_IIS
if (first_time == 1)
{
#else
if (first_time != 1)
{
#endif
#ifdef WITH_REMOTE_RULES
if (remote_rules_server != NULL)
{