0

I should protect only one Controller file with htaccess and htpasswd. I entered these instructions in the htaccess file, but I get an 'Internal Server Error' error. The .htaccess file and the .htpasswd file are located outside the application folder.

<Files ControllerFile>
AuthName "ControllerFile"
AuthType Basic
AuthUserFile .htpasswd
require valid-user
</Files>

Thanks, ciao

the_martux
  • 885
  • 2
  • 7
  • 18

0 Answers0