How can I can have centered chapter title on odd pages, and centered section title on even pages?

• Use e.g. \fancyhf[coh]{odd header}\fancyhf[ceh]{even header}. – cfr Nov 4 '14 at 19:40
• That did not work for me. – blackened Nov 4 '14 at 19:53
• I'm glad you have an answer but next time, please provide an MWE. 'Doesn't work' is singularly unhelpful. It could mean just about anything from your computer exploding to the dog eating the plug to successful compilation but with unexpected or undesired output. – cfr Nov 4 '14 at 23:46

I would suggest using the interface provided by titleps, which easily captures the section unit titles. The change in interface from fancyhdr is described in titleps for fancyhdr users:

\documentclass[twoside]{report}
\usepackage{blindtext,titleps}
\newpagestyle{chapsec}{