The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
3answers
56 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
69 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
25 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 ...
0
votes
1answer
418 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
81 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
27 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
215 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
74 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
414 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
1k 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
157 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
132 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
281 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
127 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
212 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
228 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
217 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
265 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
302 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
414 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
361 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
871 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
500 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
946 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
1k 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 ...
4
votes
1answer
1k 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 ...
5
votes
2answers
7k 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
72 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 ...
5
votes
2answers
2k 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
51 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
859 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
463 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
2k 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
458 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
388 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
1k 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 ...