Password protecting apps from console (via htpasswd)
I want to get this option in console to password protect my apps which can be done via creating htpasswd on the server. Will reduce the hassle :)
-
Jonathan commented
Any chance this will be implemented any time soon? Such a basic feature ... so simply to implement ... yet seven years have gone by?
-
Jonathan commented
As this was requested in 2015, I don't place much hope in it being implemented. It's only available on staging applications. Needs to also be available on production applications.
-
Alex Mead commented
This works http://www.softwarehtec.com/can-setup-password-protection-htaccess-htpasswd/ , but you need to link the .htpasswd to absolute path, so /home/master/applications/<appname>/public_html/admin/path_to/.htpasswd
-
Anonymous commented
A very important option to have like in cpanel's Directory Protection module, but since already requested in 2015 and still not implemented in the Cloudways console, it looks like this will never be provided... :-(
-
Leonardo Quijano commented
I suggest it's not done via .htaccess, but server side, because .htaccess is sometimes deployed from Git in complex applications (such as Magento).
-
AdminCloudways (Admin, Cloudways) commented
It should be available as default on the server.
If for some reason it is not working then please raise a ticket with our support.Cloudways Team.
-
Proko Mountrichas commented
Looks like password protection with .htpasswd is not supported for custom PHP stack. When trying to add it in .htacces in my app I get error "Invalid command 'AuthGroupFile'..." which apparently has it's root in "authz_groupfile" not being enabled.