there is a logout uri for each sharepoint site:
 
- /site1/_layouts/15/SignOut.aspx
- /site2/_layouts/15/SignOut.aspx
- /site3/_layouts/15/SignOut.aspx
APM does not support wildcard in signet URI, so you need to list all logout uri or create an irule.
 
You can use the following code which allow logout (with redirect to APM logout page) and much more features: