We present a general method for calculating Rényi entropies in the ground state of a one-dimensional critical system with mixed open boundaries, for an interval starting at one of its ends. In the conformal field theory framework, this computation boils down to the evaluation of the correlation function of one twist field and two boundary condition changing operators in the cyclic orbifold. Exploiting null-vectors of the cyclic orbifold, we derive ordinary differential equations satisfied by these correlation functions. In particular we obtain an explicit expression for the second Rényi entropy valid for any diagonal minimal model, but with a particular set of mixed boundary conditions. In order to compare our results with numerical data for the Ising and three-state Potts critical chains, we also identify and compute the leading finite size corrections.