In the emergency communication scenario, unmanned aerial vehicle (UAV) relay can provide long-distance communication service for indoor users. Different from providing services for outdoor users, there is a signal through wall loss when providing services for indoor users. The process of signal passing through the wall leads to the rapid attenuation of the signal, the significant reduction of the signal-to-noise ratio, and further leads to the decline of the system throughput. In order to improve the system throughput as much as possible, it is necessary to optimize the three-dimensional location of UAV, adjust the elevation angle of signal through the wall, and reduce the through wall loss. Users have the right to enjoy the same communication quality, but the optimization of UAV location cannot meet the fairness requirements of users.Therefore, under the constraints of user fairness and information causality, we construct the objective problem of maximizing system throughput. Due to the difficulty of solving the original problem, we decompose the original problem into two subproblems (location optimization and bandwidth allocation), and use successive convex approximation theory to solve them, respectively. Then we propose a joint location and bandwidth optimization (JLBO) algorithm.Simulation results show that the JLBO algorithm has good convergence performance and can maximize system throughput on the premise of ensuring user fairness.