On Tue, Apr 26, 2011 at 12:56 PM, Matt lm7...@gmail.com wrote:
I have an .htaccess file like so.
order allow,deny
allow from x.x.x.0/24
I have this in my root html directory and it works fine. Only allows
access by the x.x.x.0/24 subnet. Thing is I have one file
~siteinfo.html that I
Files siteinfo.html
allow from all
/Files
So would it be:
order allow,deny
allow from x.x.x.0/24
Files siteinfo.html
allow from all
/Files
Or does it matter which comes first?
-
The official User-To-User support forum of
-Original Message-
From: Michael [mailto:[EMAIL PROTECTED]
Sent: Freitag, 1. Juli 2005 16:58
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] htaccess help
My www root is /www/html.Then I have only one .htaccess and its in
/www/html/admin. There is bunch of subfolders
Plain text please...
Couple of possibilities:
- you have a wrong username/password: If you get it wrong the browser will pop
up the window again ad infinitum. Check carefully and remember case is
important (in fact, create a new account in the password file with user=aaa and
password=aaa -
The apache ver i have is Apache 2.0.40 runing on Red Hat 9.2.
I wasnt clear enough my bad. I type in the address of the folder i want to
protect in the browser. Then the wuthentication window pops up. I enter the
user and passwd info hit OK and more than half of the page loads up and
-Original Message-
From: Michael [mailto:[EMAIL PROTECTED]
Sent: Freitag, 1. Juli 2005 15:28
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] htaccess help
The apache ver i have is Apache 2.0.40 runing on Red Hat 9.2.
I wasnt clear enough my bad. I type in the address
My www root is /www/html.Then I have only one .htaccess and its in
/www/html/admin. There is bunch of subfolders in admin. The admin folder is
for phpMyAdmin so i think it has all necessary files included in that
folder. The only other thing i can think of is the connection to db. I
followed
PHP has this capability
http://us4.php.net/features.http-auth
Aman Raheja
http://www.techquotes.com
dan wrote:
Noel Stratton wrote:
Hello,
Is there a way to have .htaccess verify username and password from a
mysql
database? If not is there a way to password protect a directory with
php.
I do not believe that will help. I will have php files that can be
authenticated. However, there will be some pdf files in that directory.
Basically, I am attempting to protect the directory. Does anyone know of a
way to make .htaccess point to a php login page before allowing anyone into
the