title: Remove .htpasswd Password Protection .(Nginx)
body: <p>I added an htpasswd.txt to sites-avaiable/default to protect my site:</p>
  
  <pre><code>server {
          auth_basic "closed site";
          auth_basic_user_file /tmp/.htpasswd.txt;
  
          listen 81 default_server;
          listen [::]:80 default_server ipv6only=on;
  
          root /var/www/path/to/root
          index index.html index.htm;
  
          server_name ipaddress;
  </code></pre>
  
  <p>Now that i'm trying to remove it, I can't get rid of a .htpasswd protection I set up previously. I've tried everything from creating .htaccess in the root of my site with satisfy any <a href="https://stackoverflow.com/questions/7519088/overriding-global-htpasswd-password-protection">like this post suggests</a> and <a href="https://stackoverflow.com/questions/3863994/making-subfolder-unrestricted-while-using-htpasswd-in-apache">this</a>, to deleting the reference to htpasswd.txt from my sites-available/default file, to reinstalling nginx. I can't find where this htpasswd file is being referenced somewhere from because nothing seems to get rid of it. Lastly I tried deleted the htpasswd.txt file and that just broke the login.</p>
  
  <p>I want the whole site to be available with no htpasswd.</p>
  
  <p>I also did a grep search to find out if the htpasswd file is being called for and it's no where to be found. What can I do?</p>