The pH-dependent conformational transition of beta-lactoglobulin modulates the binding of protoporphyrin IX.