Questions tagged [htpasswd]
64 questions
37
votes
4 answers
How can I install the htpasswd utility in Red Hat / Scientific Linux?
For apache, there is the htpasswd utility, which can be used to generate encrypted passwords for .htaccess access restriction etc. In Ubuntu I can install it via the apache2-utils package, but in Scientific Linux (Red Hat) I find only the following…
Samuel Lampa
- 515
- 1
- 4
- 7
11
votes
2 answers
How to serve different robots.txt for http and https on same site?
I got a small site which served by Apache (I can't put Nginx in front nor change Apache to anything), and it is set up to serve the same site both over http and https (no redirects http->https is there so far, so both http and https versions are…
Kevin M
- 299
- 3
- 10
8
votes
1 answer
What kind of algorithm does .htpasswd uses?
I am trying to generate this kind of hashes programmatically:
axF3s9cdEnsNP
But I can't identify what kind of hash it is. The hash comes from a .htpasswd file.
All the online htpasswd generators I tried generates different type of hashes.
trevhas
- 83
- 1
- 3
7
votes
2 answers
IIS Basic Authorization ala .htaccess/.htpasswd in apache
How do I implement the protection of the pages (asp.net mvc app), so when I hit the home page or any other pages within the application I get a login dialog popup in the browser
I'm looking for something similar to what Apache .htaccess and…
Dmitry
- 201
- 1
- 2
- 4
7
votes
2 answers
Can I password protect a location (not directory) in apache using htaccess?
I have used code like this in apache configuration to protect locations with password
AuthType Basic
AuthName "Protected Area"
AuthUserFile /home/user/public_html/.htpasswd
Require valid-user
is…
dimvic
- 231
- 2
- 7
5
votes
1 answer
Don't use htpasswd if coming from local host
I have a development site that, for an additional layer of protection to keep preying eyes away, I have behind a htpasswd file. However, I'm getting tired of typing in the username and password when I'm running test on the server. So I thought it…
Scott
- 199
- 4
- 6
5
votes
1 answer
Apache - Same username in several .htpasswd files
In a virtual host, I setup two different blocks for which the access is restricted by two basic authentication htpasswd files.
One htpasswd contains different usernames + a common user name. The other htpasswd file only contains the…
greydet
- 171
- 7
4
votes
1 answer
Docker httpd & htaccess - Could not open password file
I have an error that I can't resolve, even with my last researches.
Folder structure:
-rw-r--r-- 1 root root 105 Aug 8 15:58 Dockerfile
-rw-r--r-- 1 root root 21371 Aug 8 16:05 my-httpd.conf
drwxr-xr-x 2 root root 4096 Aug 8 15:37 www
1 - I…
Quentin Rey
- 53
- 1
- 8
4
votes
3 answers
Log invalid login attempts - htpasswd
I have password protected my /www root using a .htaccess and .htpasswd file and now I was wondering if it is possible to login invalid authentication attempts. My first though was that both successful and invalid attempts, including supplied…
Cyclonecode
- 150
- 1
- 1
- 12
3
votes
4 answers
Basic Auth on DirectoryIndex Only
I am trying to configure basic auth for my index file, and only my index file. I have configured it like so:
Order allow,deny
Allow from all
AuthType Basic
AuthName "Some Auth"
AuthUserFile…
Brad
- 1,389
- 20
- 43
2
votes
2 answers
Apache .htpasswd not applied to subdirectories
I have several WordPress staging sites placed in a staging directory.
The staging directory holds a .htaccess and .htpasswd
.htaccess:
AuthType Basic
AuthName "restricted area"
AuthUserFile /var/www/staging/.htpasswd
require…
Daniel Klose
- 135
- 2
- 6
2
votes
2 answers
Apache 2 no authentication from ips
I have a deployment with apache 2.2.22 server behind varnish.
What I would like to accomplish is that password protect a directory with htpasswd but make this accessible for certain users coming from ips without authentication.
AuthType…
defiler
- 41
- 5
2
votes
1 answer
Nginx: How to exclude a URL with a query parameter from htpasswd authorization
A wordpress site has its /wp-login.php protected with HTTP authorization using htpasswd.
Web server is Nginx. Config for the same is given below.
A URL associated with a plugin uses wp-login.php?query-parameters to manage enternal users. Example…
anup
- 657
- 4
- 8
- 19
2
votes
0 answers
Trac standalone reading htpasswd file, but still says Authentication information not available
I am having some problems correctly configuring my trac server.
I'm running Tracd 0.12.1 on a Synology DS411. I've followed this guide, I can browse the issues in trac, but if I try to log in, it tells me the following error:
Trac…
Frederik
- 121
- 3
2
votes
1 answer
Apache not recognising password protected directory
I want to password the directory /rutorrent on my website. In that directory, I've created this .htaccess file:
AuthUserFile /home/whitey/sites/localhost/.htpasswd
AuthName "Login to use rutorrent"
AuthType Basic
require valid-user
And then I have…
James Linton
- 347
- 2
- 4
- 7