2 votes
Accepted

HTTP .htpasswd protect sub-domain on Nginx recursively

To protect the entire subdomain, the statements should appear in the existing server block: server { server_name dev.example.com; auth_basic "Administrator Login"; auth_basic_user_file /...
Richard Smith's user avatar
2 votes

How to remove .htaccess and/or htpasswd from vultr wordpress installation

I found the culprits here: /etc/nginx/conf.d/wordpress_http.conf and /etc/nginx/conf.d/wordpress_https.conf I commented out these lines: # auth_basic "Restricted"; # ...
webmagnets's user avatar
1 vote

Apache 2.4 ignoring basic authentication

`This is a complete working Virtalhost, you have to adapt it to your Solution. <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}...
djdomi's user avatar
  • 2,020
1 vote

Why is my .htaccess and .htpasswd not working?

AuthUserFile ./.htpasswd The file-path to your password file is most certainly wrong. This should be an absolute filesystem path. (Or a relative path, relative to the ServerRoot). For example, ...
MrWhite's user avatar
  • 13k
1 vote

htaccess + htpasswd: how to prevent executing php scripts without specifying a password

Looking at Apache documentation on Authentication, Authorization, and Access Control, unfortunately it seems that it is not possible to logout. So the problem is not that http://mysite/fill/do.php ...
Victor Wong's user avatar
1 vote

How to remove .htaccess and/or htpasswd from vultr wordpress installation

As Orphans suggests, you do basically just "remove it". You need to remove the relevant code from the .htaccess file (probably in the protected directory), or delete the file altogether if that is the ...
MrWhite's user avatar
  • 13k
1 vote

Permission denied: Could not open password file.

Try wrapping your AuthUserFile in AuthType Basic AuthName "Restricted Access" AuthUserFile "/var/www/html/server-auth/.htpasswd" Require user manu That solved the issues for me.
Scott Niejadlik's user avatar
1 vote

How to create and edit .htaccess and .htpasswd locally on my computer and then upload to my site via ftp?

The generator in the accepted answer seems to no longer be active. However, this one seems to work: https://www.askapache.com/online-tools/htpasswd-generator/
THE JOATMON's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible