Detecting temperature and concentration fields within engine combustors holds paramount significance in enhancing combustion efficiency and ensuring operational safety. Within the realm of engine combustors, the laminar absorption spectroscopy technique has garnered considerable attention. Particularly crucial is the optimization of the optical path configuration to enhance the efficacy of reconstruction. This study presents a flame parameter field reconstruction model founded on laminar absorption spectroscopy. Furthermore, an optimization approach for refining the optical path configuration is delineated. In addressing non-axisymmetric flames, the simulated annealing algorithm (SA) and Harris's Hawk algorithm (HHO) are employed to optimize the optical path layout across varying beam quantities. The findings underscore a marked reduction in imaging errors with the optimized optical path configuration compared to conventional setups, thereby elevating detection precision. Notably, the HHO algorithm demonstrates superior performance over the SA algorithm in terms of optimization outcomes and computational efficiency. Compared with the parallel optical path, the optimized optical path of the HHO algorithm reduces the temperature field error by 25.5% and the concentration field error by 26.5%.