Questions tagged [htpasswd]

16 questions
6
votes
1 answer

Password protect an alias virtual directory

I have a main domain being hosted through CPanel. I also have a sub-domain that I would like to appear as a path under the main domain instead of as a sub-domain. So I have: http://example.com/ pointing to the main hosted…
Jason
  • 161
  • 4
4
votes
4 answers

How to restrict access to my site using htaccess

How to disallow access to site except me?
user3070
  • 83
  • 4
4
votes
1 answer

.htaccess and .htpasswd throwing 500 internal server error

I've created a .htaccess and a .htpasswd file, both using my hosting's tool, uploaded them, and I get an error when I try to view the directory. Why? my .htaccess file: AuthName "Restricted Area" AuthType Basic AuthUserFile…
David Abgaryan
  • 345
  • 1
  • 3
  • 5
4
votes
2 answers

Password protect specific files on root of website

I have had a website running for a while and it has a small following. What I wish to do now is password protect some specific files that sit in the root directory. So I'd like the user not to see any username/password request unless they attempt to…
Mick
  • 321
  • 2
  • 3
  • 13
3
votes
0 answers

How to fix .htaccess error? Keeps asking for authentication

I'm setting up basic http authentication for my subdomain dev Laravel site with .htaccess and .htpasswd. First, I created my .htpasswd user and password by command htpasswd -bc .htpasswd admin passadmin. Then, my htaccess file with some basic…
2
votes
2 answers

htaccess and htpasswd trouble

This is the first time that I have ever tried working with .htpasswd and .htaccess files, so please point out my childish works. I have my apache document root set to /www/ on my debian server. Inside it, there's a folder named Logs/ which I want to…
hjpotter92
  • 236
  • 1
  • 16
2
votes
0 answers

Safari prompts for BasicAuth credentials on every request in WordPress admin area, but works fine on the rest of the site

I have a WordPress website which is in development, and is hidden behind a BasicAuth password prompt. My root level .htaccess file: AuthType Basic AuthName "Login Details" AuthUserFile /var/www/vhosts/site.tld/.htpasswd Require valid-user When…
2
votes
1 answer

.htaccess password protection generates 500 internal server error

I have created a .htpasswd file using htaccess tools of which I have uploaded to the root of my web hosting space (/public_html is my web root). I created a .htaccess file which referenced the .htpasswd as follows: AuthType Basic AuthName "Protected…
Steve
  • 1,376
  • 4
  • 19
  • 38
1
vote
3 answers

htaccess , htpasswd and error 401

I have a problem with htpasswd. I get an error in error.log apache2 user admin: authentication failure for "/": Password Mismatch Content of my htaccess file: # Set Access Restrictions AuthType Basic AuthName "admin" AuthUserFile…
Sourceforest
  • 21
  • 1
  • 3
1
vote
1 answer

How secure is using .htpasswd to secure a directory?

I'm basically creating something off of my main domain www.mywebsite.com/intranet. I've created .htpasswd protection for that intranet directory. I can't implement individual user passwords yet and I want to use .htpasswd as an interim…
milesmeow
  • 689
  • 5
  • 14
1
vote
1 answer

In NginX what means location ^~

If I'm not wrong, location = / {} means "only the / folder, not the files inside, not the subfolders" location ~ / {} means "the / folder, all the files inside, all the subfolders and their subfiles" But what it means: location ^~ / {}?I found this…
Kunepro
  • 23
  • 2
  • 5
1
vote
2 answers

Is it possible to restrict the access to a website with a login/pwd tuple without having access to the Apache config?

I only have a web hosting solution which doesn't include a server config access, this is a mutualized solution. I would like to try to allow users to access my website only if they have the expected login/password credentials, by using a .htaccess…
Another Dude
  • 111
  • 2
1
vote
1 answer

.htaccess problem with people with identical usernames

I've recently set up a password protected area on a client's website, but there's an issue where several of the members of the organisation concerned have identical usernames, although, obviously, different passwords. For example, if there are two…
Ian
  • 11
  • 1
1
vote
0 answers

Password protect a website only if it is the dev site

I am trying to password protect a website only if it is the dev site using .htaccess and .htpasswd I am using Apache 2.4.29 on Ubuntu 18.04 Here is what I have in the .htaccess file AuthUserFile…
1
vote
2 answers

http password protection causing 'too many redirects'

I have a Wordpress site on a VPS which keeps getting attached on xmlrpc and wp logins. As part of combatting this I password protected the wp-admin directory (via Cpanel 'Directory Privacy') - but when I go to test it I get browsers not loading the…
iain-g
  • 113
  • 4
1
2