Password file format used on Apache web servers
Questions tagged [.htpasswd]
48 questions
0
votes
0 answers
Apache .htpasswd SSL
I understand there are similar questions to this. I tried their solutions and even tried commenting on one before asking this. Before logging in, Chrome is showing the connection does not have SSL. https://i.stack.imgur.com/j5K94.png
Here's my…

sajattack
- 101
- 2
0
votes
1 answer
Can i use one .htpasswd file for different folders on Linux server
I have many modules in my codeignitor application as
module/products
module/billing
module/cms
module/groups
.....
Some of the above modules are accessible to admin user only so I want to put .htpasswd file to restrict those module. In my module…

Umar
- 119
- 2
0
votes
1 answer
PHP scripts fail after adding .htaccess to password protect a dir
I added .htaccess and .htpasswd to a dir in order to password protect it. That part works.
AuthType Basic
AuthName "Password Protected Area"
AuthUserFile /path/.htpasswd
Require valid-user
But now, php scripts inside this dir fail to execute. …

Corepuncher
- 191
- 1
- 3
- 9
0
votes
2 answers
Apache: Stealth 404 the admin area until authenticated via basic auth, then allow access
Given a administrative area with urls like this:
wp-admin/
wp-admin/whatever
wp-admin/another-page
wp-adminsecretlogin
A standard basic-auth coverage would provide a username and password prompt on all three urls, and return a 403 on all failed…

Kzqai
- 1,278
- 4
- 18
- 32
0
votes
2 answers
Nginx Server Block Port 8081 Path to Root Folder
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 Nginx welcome page. However, when I try…

Pamela
- 187
- 2
- 13
0
votes
1 answer
apache how to limit per user ip
i have a password protected directory with hundreds of users in htpasswd file.
i want to allow download of files on these conditions:
check if username is valid (already done).
check if another connection with the same username exists. (the are…

Bor691
- 233
- 4
- 14
0
votes
0 answers
.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 is not working.
Any help would be much…

Matt27
- 1
- 1
- 2
0
votes
1 answer
Looking to generate a directory exception to .htpasswd SSL-protected site
I have an entire site under .htpasswd with SSL - any http requests are rejected - and am trying to exempt a folder from the rule. Either to do a basic .htpasswd for the directory, or make it open. I'm sure I'm being very stupid, but I haven't been…

Hugh
- 1
- 2
0
votes
3 answers
Does Apache use any other dot ht files besides .htaccess and .htpasswd?
I'm hardening my Apache server config and wondering if it uses any other "^.ht.+" files besides .htaccess and .htpasswd?

Jeff
- 1,416
- 3
- 28
- 50
0
votes
1 answer
.htaccess password directory protection - blank page
i want to use for some website Apache password protection for an directory. This is not mine hosting so I can't look to logs or sth. So I just copied my .htacces that works just perfect on my hosting. The problem is, that I don't see any dialog box…

marverix
- 131
- 1
- 5
0
votes
1 answer
Apache: Restrict directory access per User
I'm looking for a solution to restrict access to directorys. I've a bunch of clients and each of them should be allowed to view only his own directory. But he needs to have (read) access to the global directory. And this driving me nuts...
I can…

gearsdigital
- 101
- 1
- 3
0
votes
2 answers
Can't copy .htpasswd or .changes from ubuntu server via samba. Why?
I'm trying to copy a twiki data dir (ubuntu server) via a samba share to an XP box... all files copy except for .htpasswd and .changes. Any ideas why not? Is there some service that is protecting them?

Dave
- 3
- 1
0
votes
2 answers
Private access to the path within RewriteEngine rule
I have the following .htaccess file (usual one for MediaWiki):
RewriteEngine On
RewriteRule ^wiki/(.*)$ /w/index.php?title=$1 [PT,L,QSA]
RewriteRule ^wiki/*$ /w/index.php [L,QSA]
RewriteRule ^/*$ /w/index.php [L,QSA]
And I want to restrict access…

Nikolay Vyahhi
- 103
- 4
0
votes
2 answers
.htaccess directory nightmare
I'm on a shell, and my web folder is located at /home/w/waterfox/public_html. In there, I have a directory called irclogs, which I'm trying to password-protect. It is chmodded to 755.
Here is the .htaccess file that I placed in my public_html…

Kudu
- 247
- 2
- 4
- 8
0
votes
2 answers
.htaccess and .htpassword not working
I'm running a wamp server on a windows xp box.
I have a .htaccess file that contains
AuthType Basic
AuthName "restricted area"
AuthUserFile C:/wamp/www/.htpasswd
require valid-user
and a password file…

Crash893
- 747
- 2
- 15
- 30