Questions tagged [htpasswd]
The htpasswd tag has no usage guidance.
64
questions
0
votes
1
answer
33
views
htpasswd sets incorrect password when the password has special characters
The Problem
I am attempting to update passwords for a large list of users using htpasswd. I am using a csv file to pull in the new passwords.
When the script runs it appears to successfully update the ...
0
votes
1
answer
71
views
Checkmk 1.6.0p21 can't login even after resetting password - Invalid credentials [closed]
I'm unable to log into a Checkmk 1.6.0p21 dashboard through the web interface. I have access to the machine running it and nothing I do on it makes a difference.
It always gives the error "...
1
vote
1
answer
201
views
Replace AuthUserFile with the password itself or reference a relative path to the folder
I have a PHP script that generates 100s of directories and in these directories contain CSV files. I'm able to protect these CSV files using AuthUserFile if it points to an absolute .htpasswd file, ...
1
vote
1
answer
115
views
Allow files to be listed when viewing a directory but protected (via HTTP authentication) when accessed directly
I created a password protected directory using .htaccess and .htpasswd, but the files don't show up when I go to the directory URL.
I have this in my .htaccess:
#Protect multiple files
<FilesMatch &...
2
votes
2
answers
328
views
generate apache compatible password with mysql
I am currently in the process of migrating an old webserver.
The old server uses basic auth with users stored in a mysql table and mod_auth_mysql enabled.
The password ist stored with apaches build in ...
0
votes
0
answers
37
views
Cannot Login to Apache server which is also FTP server?
I have created a .master-passwd file with help of htpasswd and also added few users with a password to the file. My Problem is that some users who were added later date can not access the FTP server. ...
1
vote
0
answers
196
views
One Htpasswd For Multiple Vhosts (Apache)
I have multiple vhosts in my httpd.conf like this:
<VirtualHost *:80>
ServerName example.com
DocumentRoot "/var/www/html/wordpress"
<Location /wp-admin/>
AuthName ...
4
votes
1
answer
3k
views
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
...
0
votes
0
answers
182
views
apache 2.4 exclude url
I need to configure apache in reverse proxy to have all url protected with password except url start with /app/test#/toto/xxxxx. I have a problem with the # in the url, if I test with other url ...
1
vote
0
answers
2k
views
Apache and htpasswd getting errors from random number generator
Recently (probably after yum update something), one of my CentOS7 server running Apache2.4.37 has started to produce the following errors.
apachectl configtest
(38)Function not implemented: AH00141: ...
11
votes
2
answers
3k
views
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 ...
0
votes
1
answer
3k
views
Enable Nginx authentication for a specific URL [duplicate]
I'm working with a control panel, and I need to put an authentication in admin access.
I already created the user and password, the configuration of nginx this way:
server {
listen 443 ssl;
...
2
votes
2
answers
2k
views
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/...
0
votes
0
answers
556
views
.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 ...
0
votes
1
answer
632
views
Nginx location for sub-pages behind "?" url
I'm trying to put an htpasswd only for a group of sub-pages under this url:
https://exemple.com/doku.php?id=staff
So for instance this page should be include:
https://exemple.com/doku.php?id=staff:...
1
vote
0
answers
342
views
.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, ...
0
votes
3
answers
4k
views
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-...
0
votes
1
answer
410
views
AWStats in subdirectory of Wordpress shows 404 error when password protected
I am running (for a client) a Wordpress site on a CentOS/WHM/Apache 2.2 server, and within a subdirectory we have AWStats installed. Everything working fine until we apply password protection through ...
0
votes
0
answers
2k
views
phpMyAdmin asks for BasicAuth
When accessing the phpMyAdmin link (mydomain.com/phpMyAdmin/), I am being prompted with a BasicAuth pop-up.
The phpMyAdmin/config.inc.php does not overwrite any defaults, therefore the config.default....
0
votes
2
answers
879
views
Sudo command refused (htpasswd) - CentOS / Apache (htaccess)
I want to give one of the web developers testuser permission to set his own .htpasswd password using the /usr/bin/htpasswd command on the web server 'mywebserver'.
The web server tree belongs to the ...
0
votes
1
answer
382
views
.htaccess is ignored even if rightly configured
I am getting mad:
vhost: http://termbin.com/4z10
<VirtualHost *:8080>
ServerAdmin istreaming@gmail.com
ServerName ec2-52-36-220-163.us-west-2.compute.amazonaws.com
DocumentRoot /var/www/...
2
votes
2
answers
307
views
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 ...
2
votes
1
answer
2k
views
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?...
1
vote
1
answer
2k
views
Nginx Password Protect Directory Downloads Source Code
I'm trying to password protect a WordPress login page on my Nginx server. When I navigate to http://www.example.com/wp-login.php, this brings up the "Authentication Required" prompt (not the WordPress ...
0
votes
2
answers
2k
views
Nginx Server Block Port 8081 Path to Root Folder [closed]
I'm trying to password protect all of port 8081 on my Nginx server. The only thing this port is used for is PhpMyAdmin. When I navigate to https://www.example.com:8081, I successfully get the default ...
1
vote
1
answer
4k
views
htpasswd - Any tip to block brute force attacks?
Update: As Craig suggested I'm trying fail2ban now. Even though I have issues in that as well.
failregex is not finding any result though. I had enabled all apache* in jail.local and here is how my ...
0
votes
0
answers
3k
views
.htaccess password not working
I've been trying to use .htaccess to password protect a folder for a website. Unfortunately I can't seem to get it to work. I'm not getting an error, but the password being set in the .htpasswd file ...
0
votes
3
answers
2k
views
Apache doesnt pop up htpasswd authentification
i've been having trouble in the last hour with htaccess file.
so what i want:
I have a folder which is located at http://myip.com/FOLDER and I want a simple authentification page via htaccess
So i ...
0
votes
1
answer
494
views
ClamAV not installed. ClamAV is already installed
Re-Edit:
After lots of Googling, lots of tracing, lots of tinkering with the nginx.conf & /vhosts -
It came down to an error message saying ClamAV was not up to date.
Running clamscan told me ...
1
vote
0
answers
147
views
lighttpd access control affecting subdirectory trees sibling to a htpasswd file
Suppose I have a htdocs directory tree served by lighttpd
htdocs
htdocs/foo
htdocs/foo/spam
htdocs/foo/eggs
htdocs/foo/eggs/stirred
htdocs/foo/eggs/fried
htdocs/bar
htdocs/bar/bacon
Now I'd like to ...
1
vote
1
answer
6k
views
nginx http auth only working on folders, not on files
I am new to nginx and I really enjoy how fast it is in combination with php-fpm.
I want to protect a folder with
location / {
try_files $uri $uri/ $uri.php /;
auth_basic "...
0
votes
1
answer
999
views
htpasswd not working when set up in the httpd.conf file
My httpd.conf file looks like:
<Directory "/path/to/mysite">
AuthType Basic
AuthName "Restricted Files"
AuthUserFile "/path/to/.htpasswd"
Require user valid-user
Options ...
0
votes
1
answer
37
views
Apache How do I make it so other IP Address's can go into a folder but only if they login
So I want to be able to access my "home" admin folder at school but I cant so how do I make it so I can with .htpasswd file and then allow access but I got it to work once but gave me a 500 error...
0
votes
2
answers
965
views
Lighttpd: htaccess protection does not work
i have tried to setup an htaccess protection of an file from my website.
i have pasted the following code into the 05-auth.conf
$HTTP["url"] =~ "^/www/hosts/domain" {
auth.backend = "htpasswd"
auth....
1
vote
1
answer
233
views
configure nginx to use an optional .htpasswd
Hello Serverfault members.
I want my NginX to use an optional .htpasswd file.
The reason is, that my config dynamically serves the webcontent. Based on $http_host.
So I've tried the following:
if (-...
0
votes
1
answer
3k
views
.htaccess with .htpasswd on site root causes redirect loop
I want to temporarily password-protect a site.
I have an .htaccess file in the site root containing:
AuthType Basic
AuthName "Example Site Name"
AuthUserFile /home/my_username/.htpasswd
Require ...
4
votes
3
answers
17k
views
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 ...
5
votes
1
answer
841
views
Apache - Same username in several .htpasswd files
In a virtual host, I setup two different <Location> blocks for which the access is restricted by two basic authentication htpasswd files.
One htpasswd contains different usernames + a common ...
0
votes
2
answers
299
views
How can I lock a directory in debian server installed with ngix?
I tried so many methods and get stick hours with this. I edit /etc/nginx/nginx.conf and write these lines.
location /home/user/domains/example.com/public_html/lockfolder/ {
auth_basic "Restricted";
...
2
votes
0
answers
1k
views
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 ...
2
votes
1
answer
1k
views
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"
...
0
votes
2
answers
1k
views
protecting a single .exe-file for downloading with htaccess and htpasswd?
I have this, and only this, in a .htaccess file inside my downloads folder:
<FilesMatch "\.(exe)$">
AuthType Basic
AuthName "Downloads"
AuthUserFile path/to/.htpasswd
Require valid-user
...
0
votes
1
answer
829
views
Using nginx and htpasswd, redirect user
Upon my server, I am running Webalizer on a few of my client's websites (and associated log files of access). Now this process is fine, and the log files are generated correctly and stored.
What I am ...
0
votes
1
answer
949
views
Apache htpasswd ignored DomJudge
I am trying to set up DomJudge with Apache on an Ubuntu server and have the following config included in my httpd.conf
# Require authentication to jury webinterface
<Directory /home/domjudge/...
1
vote
1
answer
1k
views
How to generate a Linux Apache password file on a PC running Windows 7?
My development machine is Windows. I use the htpasswd program that is part of the Windows XAMPP package, version 1.7.7, to generate a Windows Apache password file.
C:\xampp\apache\bin\htpasswd.exe -...
2
votes
1
answer
850
views
Multiple authentication backends in lighttpd
I have some users in a LDAP directory and I'd like to have another user in a plain or htpasswd file that can login although the connection with the LDAP server is not available.
Is it possible to ...
1
vote
1
answer
3k
views
.htaccess password protection not working in localhost
I tried to implement htaccess password protection for a directory in my localhost.
My htaccess file is situated in /home/Server/Dev. The directory I want to protect is /Dev/. My .htaccess file has ...
2
votes
1
answer
2k
views
Apache htaccess passwd - ignoring correct login
I want to password protect a directory. I'm running Apache 2 with cPanel on Centos.
For the sake of this post, the directory is /home/user/my-secret-dir
I used cPanel's "Password Protect Directories"...
1
vote
1
answer
3k
views
Lighttpd: htpasswd protection
i would use an htpasswd protection for an folder of my website. I use lighttpd an i have write the following code into the lighttpd.conf
# Limit access to ispgen
auth.backend = "htpasswd"
auth....
3
votes
4
answers
2k
views
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:
<Files index.htm>
Order allow,deny
Allow from all
AuthType Basic
...