support cgi setups for protected media

--HG--
branch : 0.8