Apache/Tomcat error - wrong pages being delivered

后端 未结 11 957
借酒劲吻你
借酒劲吻你 2020-12-09 05:51

This error has been driving me nuts. We have a server running Apache and Tomcat, serving multiple different sites. Normally the server runs fine, but sometimes an error happ

11条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-09 06:31

    Although you did mention mod_cache was not enabled in your setup, for others who may have encountered the same issue with mod_cache enabled (even on static contents), the solution is to make sure the following directive is enabled on the Set-Cookie HTTP header:

    CacheIgnoreHeaders Set-Cookie
    

    The reason being mod_cache will cache the Set-Cookie header that may get served to other users. This would then leak session ID from the user who last filled the cache to another.

提交回复
热议问题