The htpasswd tag has no wiki summary.
0
votes
1answer
17 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
35 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"
...
1
vote
1answer
38 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
166 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 ...
2
votes
3answers
407 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
96 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
82 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";
...
1
vote
0answers
176 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
88 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
129 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
0answers
194 views
Password protect all requests except a certain directory
All requests on my domain go through a central PHP file (CMS) and I want to add a simple htaccess password to the site to all requests except those that match a certain sub directory.
WOULD NOT ASK ...
0
votes
1answer
173 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
141 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 ...
1
vote
1answer
247 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 ...
1
vote
2answers
324 views
Apache password protected directories. How to find out if .htaccess is reading the right .htpasswd file?
I'm trying to set up a protected directory on my Linux server that is running Apache.
I'm following the instructions that my host has given me. Setting it up using Plesk control panel, doesn't ...
2
votes
1answer
279 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
701 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 ...
1
vote
1answer
458 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 ...
1
vote
1answer
698 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"
...
3
votes
4answers
825 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
...
3
votes
2answers
2k 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 ...
3
votes
1answer
532 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 ...
3
votes
1answer
4k 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
67 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 ...
4
votes
2answers
1k views
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
<Location ~ "/admin.*">
AuthType Basic
AuthName "Protected Area"
AuthUserFile ...
0
votes
1answer
2k views
.htaccess Authentication Internal Server Error 500
I am trying to setup an authentication for a directory on a ubuntu server and when i sign in i get a 500 Internal Server Error
I have the following:
AuthUserFile .htpasswd
AuthName "Sign In"
...
0
votes
1answer
50 views
htaccess problem
I seem to be having a problem with my htaccess file. Here is the code
AuthUserFile /core/.htpasswd
AuthGroupFile /dev/null
AuthName "Restricted Area"
AuthType Basic
require valid-user
Basically ...
1
vote
1answer
781 views
Can htpasswd be used to restrict access to a URL rather than a specific folder?
I would like to restrict access to certain URLs with htpasswd files, rather than folders, is this possible? For example, I wish to restrict the URL:
www.example.com/pages/id/227/Restricted_Page
But ...
0
votes
1answer
409 views
I am trying to write an htaccess file performs authentication and redirects authenticated users to authorized directories. Can anyone help me with the condition syntax?
This is what I have so far but I can't get the RewriteCond and RewriteRule properly.
RewriteEngine On
RewriteCond %{LA-U:REMOTE_USER} (\d{3})$
RewriteRule !^%1 http://subdomain.mydomain.com/%1 ...
1
vote
1answer
1k views
Is it possible to write an htpasswd file that redirects certain users to certain directories?
Assuming that I have a domain, say, mydomain.com and three directories under it call them dir1, dir2 and dir3, then is it possible to put an htpasswd file at the web root and have it redirect ...
2
votes
1answer
444 views
Need a .htaccess reroute exception when dealing with authentication in a child directory
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
...
0
votes
2answers
2k views
Where should I put my htpasswd file in a plesk domain for use with .htaccess?
I've got a path in my domain which needs apache to prompt for a password. I'll be using the .htaccess file to do this, so I can protect or unprotect by adding or removing the file.
I need a place to ...
1
vote
1answer
316 views
How to set htpasswd for all except LAN?
How can I set htpasswd prompt for everyone who want to access some server except people from LAN (192.168.0.*) ?
Thanks for the answers !
4
votes
1answer
946 views
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 ...