ESP32 as server for both Classic and BLE connections


I would like to know whether there is any way to operate an ESP32 as a server in order to accept data from a mobile phone and send it to another ESP32 over BLE? Please suggest me how can I achieve this?