[3.8] Enhance XSendFileMapping to handle apache configuration