Remove Password Protection .htaccess (Nginx)

时间:2015-07-28 22:15:48

标签: .htaccess nginx passwords

I'm trying to take my site live by removing the htpasswd protection i'm not sure if this is related to my other predicament but hopefully not. i've tried deleted and commenting out the language inside /sites-available/default that references my htpasswd.txt file but I can't get rid of the password protection this is basically how its setup: kbeezie.com/…

There's a million articles that explain how to remove htaccess password protection but most of them are for apache and suggest creating an .htaccess file and writing: Satisfy Any and Allow All etc but none of that works for me. of course -_-;;.

I've tried deleteing the .htpasswd file and removing the code that references it (also deleted the code) and none of that worked. Any ideas?

1 个答案:

答案 0 :(得分:0)

我建议任何有这样一个问题的人都会涉及到很多努力后无法解决的未知问题(努力几天):转到你的服务器(在我的情况下是数字海洋)并创建一个新的(拍摄你的快照)服务器应用于您的新IP)您的站点的IP / Droplet。卸载服务器引擎(Nginx或Apache)并在新服务器/ IP上重新安装。这有点烦人,但至少你不会像我那样被困住几天。