Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I turn on basic authentication on a Heroku PHP app?

I have a very simple PHP app that is hosted on Heroku (Cedar Stack). I want to turn on basic authentication but I don't know if it is possible. It doesn't look like it supports .htaccess / .htpasswd but I could be wrong. How can I turn on basic auth?

like image 259
Progger Avatar asked Nov 26 '25 00:11

Progger


1 Answers

Based on this gist it looks like you can add the files you need.

like image 57
friism Avatar answered Nov 28 '25 15:11

friism