Password file format used on Apache web servers
Questions tagged [.htpasswd]
47 questions
2
votes
1 answer
Why is my .htaccess and .htpasswd not working?
I have .htaccess and .htpasswd files in the directory that has png files that I want to protect.
.htaccess
AuthType Basic
AuthName "Co to za nielegalne grzebanie w plikach, juz dzwonie na milicje."
AuthUserFile ./.htpasswd
Require…
![](../../users/profiles/621854.webp)
Wungiel
- 21
- 1
1
vote
2 answers
.htaccess has no effect on subdirectory
I need to protect my whole website (It's just for development at the moment) with a password. So I created a .htaccess and a .htpassword file. The .htaccess contains
AuthUserFile /my/absolute/path/.htpassword
AuthName "Protected"
AuthType…
![](../../users/profiles/458671.webp)
Peni
- 111
- 5
1
vote
0 answers
Apache .htaccess and .htpasswd doesn't ask for password in Django site
I have a Django site with mod_wsgi configured, using Apache 2.4 as web server.
Virtual Host:
ServerName site.com
ServerAlias site.com
ServerAdmin example@example.com
DocumentRoot /var/www/site
…
![](../../users/profiles/330325.webp)
Caco
- 113
- 5
1
vote
0 answers
.httpasswd doesn't work breaks Yii .htaccess Rewrite Rules
I have a standard .htaccess for Yii 1.1, to which I added http based authorization.
When I added the password protection, the Rewrite Condition RewriteCond %{REQUEST_FILENAME} !-f stopped working, and now static file requests are processed through…
![](../../users/profiles/40882.webp)
Petruza
- 285
- 3
- 9
1
vote
1 answer
HTTP Basic Auth unless connecting from the office with Apache 2.4?
We wish to set up a website for demo purpose only that we can:
Access from anywhere from the internet by entering a username and password via HTTP Basic Auth.
For ease of use we wish to not having to go through HTTP Basic Auth from the office,…
![](../../users/profiles/253090.webp)
Machoke
- 115
- 8
1
vote
2 answers
Force https before authentification - no access to vhost
I am a beginner when it comes to servers and I have a problem similar to this one.
When accessing the desired webpage, .htpasswd prompts me for an authentification before I am redirected to https.
Is there any workaround solely by editing the…
![](../../users/profiles/264165.webp)
aldorado
- 113
- 3
1
vote
0 answers
Password protect website
I'm trying to password protect my website from ONE ip address.
I just want to restrict an ip from accessing my website, but still allow them to access it if they have the password.
My current code .htaccess
AuthType Basic
AuthName "Login"…
![](../../users/profiles/215943.webp)
Peter
- 11
- 1
1
vote
1 answer
Is the following .htpasswd .htaccess login SSL protected?
I have a directory that I have protected using .htpasswd/.htaccess HTTP authentication.
In the .htaccess file for the directory I have this:
SSLRequireSSL
order allow,deny
deny from all
AuthUserFile…
![](../../users/profiles/43461.webp)
columbo
- 219
- 1
- 12
1
vote
2 answers
Apache authentication inside a WordPress install
I am currently running into an issue with trying to password protect a directory that is sitting inside a directory that's running WordPress. This is for a directory called "admin" that handles a few things outside of WP.
In my WordPress .htaccess…
![](../../users/profiles/24895.webp)
Charles Chadwick
- 63
- 1
- 6
0
votes
1 answer
Limit directory index to authenticated users
Essentially what I am trying to do is to limit directory indexing to authenticated users from a htpasswd file on my Apache server. Here is what I have so far.
AuthUserFile C:\XXXXXXXXX\htpasswd
AuthGroupFile /dev/null
AuthName "Password…
![](../../users/profiles/551629.webp)
Emanuel Elliott
- 103
- 2
0
votes
0 answers
nginx http authentication with system user
I'm running a nginx server with basic http authentication that use a htpasswd password file.
Is possible use instead the normal user and passwpord of linux system?
0
votes
1 answer
htaccess + htpasswd: how to prevent executing php scripts without specifying a password
My site is managed by Apache on Linux. In the base directory, there is the sub folder fill. In this subfolder, there is a php script: do.php
Here is my .htaccess:
AuthType Basic
AuthName 'Welcome back'
AuthUserFile…
![](../../users/profiles/54614.webp)
user54614
- 359
- 2
- 6
- 18
0
votes
0 answers
htpasswd keeps asking for password - phpmyadmin
I am using Ubuntu 18.04 LTS Desktop to host an apache2 webserver. I installed phpmyadmin and wanted to secure it using htpasswd. There for I edited the /etc/apache2/conf-available/phpmyadmin.conf, adding AllowOverride All and restarted apache2. I…
![](../../users/profiles/478996.webp)
mathmaniac88
- 111
- 1
- 1
- 7
0
votes
0 answers
.htpasswd username/password picked up but don't seem to work?
My intent is to have Jenkins behind apache. It uses a proxy-pass (for /) and I want it to be behind some basic auth.
So I have set up an apache2, using digitalocean's tutorial as starting point.
I have generated a .htpasswd file with…
![](../../users/profiles/205026.webp)
Stefan Hendriks
- 101
- 2
0
votes
3 answers
How to remove .htaccess and/or htpasswd from vultr wordpress installation
I fired up a server on vultr and chose wordpress. It setup htpasswd on the admin login. How can I remove that?
Here is the only .htaccess file I can find:
# Only allow direct access to specific Web-available files.
# Apache 2.2
![](../../users/profiles/384504.webp)
webmagnets
- 137
- 1
- 7