Questions tagged [htpasswd]
The htpasswd tag has no usage guidance.
60
questions
1
vote
2answers
91 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
0answers
31 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
0answers
87 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
1answer
2k 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
0answers
96 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
0answers
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
2answers
2k 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
1answer
1k 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
2answers
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
0answers
417 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
1answer
480 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
0answers
301 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
3answers
3k 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
1answer
331 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
0answers
1k 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
2answers
691 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
1answer
313 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
2answers
274 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
1answer
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?...
0
votes
1answer
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
2answers
1k 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
1answer
3k 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
0answers
2k 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
3answers
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
1answer
461 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
0answers
141 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
1answer
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
1answer
818 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
1answer
35 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
2answers
897 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
1answer
204 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
1answer
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
3answers
15k 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
1answer
711 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
2answers
296 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
0answers
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
1answer
996 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
2answers
911 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
1answer
733 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
1answer
890 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
1answer
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
1answer
775 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
1answer
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
1answer
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
1answer
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
4answers
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
...
7
votes
2answers
14k views
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 ...
8
votes
1answer
8k views
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 ...
29
votes
4answers
79k views
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 ...
1
vote
2answers
94 views
apache AuthBasic denying correct login
I created a vhost in apache with this config
Alias /my /srv/my
<Location /my>
AuthType basic
AuthName "private area"
AuthBasicProvider file
AuthUserFile /var/www/vhosts/my/...