I'm on Symfony 2.3 and need to protect different routes with different htpasswd restrictions.
There is one on the main route /
and one on another route, like for example /restricted/user
.
Since http basic auth is broken in security.yml (in combination with some apache and cgi configs), I need to do this in the .htaccess
, that exist in the web/
directory.
I already have the /
route secured, but how can I add another route that obviously does not exist as a directory?