|
Related Topics:
| Use of htaccess file with Apache - Suppose I write an / rule in a htaccess and it resides in the root If I write another / rule in another htaccess file in a 1) Would the server still access the htaccess file in root as well as the ..
.htaccess file makes 403 - hi folks, i wrote a .htaccess file with the following content: On !-f / ^typo3$ index.php but when accessing this page, a 403..
Can htaccess include another file? - Hi, I want to achieve something like this. Imagine I have a file called which contains a whole bunch of IP addresses which I want to blocked, one per line. Can I do something like this? <Files deny from..
.htaccess file and reported error - on Suse 9.0] I have under my directory a directory for test purposes only. In the I have these: All Order Deny, Allow Allow from All..
UNIX + Windows htaccess in one file possible? - Hello! I use WAMP for and LAMP for hosting my website. Sometimes I need to certain On the I need to put into my htaccess file to point to the On..
|
|
|
Next: Apache: replace "filesMatch->forcetype" using Rewrite..
|
| Author |
Message |
External

Since: Jan 17, 2005 Posts: 6
|
(Msg. 1) Posted: Wed Jan 19, 2005 4:35 pm
Post subject: .htaccess file Archived from groups: alt>apache>configuration (more info?)
|
|
|
I have set up an .htaccess file in a private directory that I am
hosting. I included the Directory in httpd.conf as such...
<Directory "var/www/html/sercretstuff">
AuthType Basic
AuthName "By Invitation Only"
AuthUserFile /var/www/passwd/passwords
AuthGroupFile /var/www/passwd/groups
Require group GroupName
</Directory>
And the following is true...
passwords is the file created with the htpasswd command.
groups is a file consisting of the user names as such
user1 user2 user3
Everything appears to work ok, except when I browse to that directory
within InternetExplorer, I am asked for a user name and password and
when I enter the ones that I have set up , I am not allowed access still.
Did I do something wrong here? The part that doesn't look right to me
is the last line in the Directory section...Require group GroupName. It
just looks weird to me but that is how they show it on httpd.apache.org.
Please Help,
Thanks,
Mike >> Stay informed about: .htaccess file |
|
| Back to top |
|
 |  |
External

Since: Dec 23, 2004 Posts: 29
|
(Msg. 2) Posted: Wed Jan 19, 2005 6:35 pm
Post subject: Re: .htaccess file [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Mike U. wrote:
> I have set up an .htaccess file in a private directory that I am
> hosting. I included the Directory in httpd.conf as such...
> <Directory "var/www/html/sercretstuff">
> AuthType Basic
> AuthName "By Invitation Only"
> AuthUserFile /var/www/passwd/passwords
> AuthGroupFile /var/www/passwd/groups
> Require group GroupName
> </Directory>
>
> And the following is true...
> passwords is the file created with the htpasswd command.
> groups is a file consisting of the user names as such
> user1 user2 user3
>
> Everything appears to work ok, except when I browse to that directory
> within InternetExplorer, I am asked for a user name and password and
> when I enter the ones that I have set up , I am not allowed access still.
> Did I do something wrong here? The part that doesn't look right to me
> is the last line in the Directory section...Require group GroupName. It
> just looks weird to me but that is how they show it on httpd.apache.org.
>
> Please Help,
>
> Thanks,
>
> Mike
>
I don't know, but perhaps it requires that the user have
a) the right username
b) the password
AND
c) be in the right group.
I've never used 'group' before and never had a problem. Access works OK.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: .htaccess file |
|
| Back to top |
|
 |  |
External

Since: Jan 17, 2005 Posts: 6
|
(Msg. 3) Posted: Wed Jan 19, 2005 7:35 pm
Post subject: Re: .htaccess file [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
I only set up one user to start, and i used that users name and
password. The only group is the one with the users in it. I guess I
will dump the group part and try it with just AuthUserFile.
Dave wrote:
> Mike U. wrote:
>
>> I have set up an .htaccess file in a private directory that I am
>> hosting. I included the Directory in httpd.conf as such...
>> <Directory "var/www/html/sercretstuff">
>> AuthType Basic
>> AuthName "By Invitation Only"
>> AuthUserFile /var/www/passwd/passwords
>> AuthGroupFile /var/www/passwd/groups
>> Require group GroupName
>> </Directory>
>>
>> And the following is true...
>> passwords is the file created with the htpasswd command.
>> groups is a file consisting of the user names as such
>> user1 user2 user3
>>
>> Everything appears to work ok, except when I browse to that directory
>> within InternetExplorer, I am asked for a user name and password and
>> when I enter the ones that I have set up , I am not allowed access
>> still.
>> Did I do something wrong here? The part that doesn't look right to me
>> is the last line in the Directory section...Require group GroupName.
>> It just looks weird to me but that is how they show it on
>> httpd.apache.org.
>>
>> Please Help,
>>
>> Thanks,
>>
>> Mike
>>
> I don't know, but perhaps it requires that the user have
> a) the right username
> b) the password
> AND
> c) be in the right group.
>
> I've never used 'group' before and never had a problem. Access works OK.
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: .htaccess file |
|
| Back to top |
|
 |  |
External

Since: Jul 19, 2004 Posts: 9
|
(Msg. 4) Posted: Wed Jan 19, 2005 9:35 pm
Post subject: Re: .htaccess file [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Mike U. wrote:
> I have set up an .htaccess file in a private directory that I am
> hosting. I included the Directory in httpd.conf as such...
> <Directory "var/www/html/sercretstuff">
> AuthType Basic
> AuthName "By Invitation Only"
> AuthUserFile /var/www/passwd/passwords
> AuthGroupFile /var/www/passwd/groups
> Require group GroupName
> </Directory>
>
> And the following is true...
> passwords is the file created with the htpasswd command.
> groups is a file consisting of the user names as such
> user1 user2 user3
>
> Everything appears to work ok, except when I browse to that directory
> within InternetExplorer, I am asked for a user name and password and
> when I enter the ones that I have set up , I am not allowed access still.
> Did I do something wrong here? The part that doesn't look right to me
> is the last line in the Directory section...Require group GroupName. It
> just looks weird to me but that is how they show it on httpd.apache.org.
Replace "GroupName" with the actual name of the group
in /var/www/passwd/groups. "GroupName" is just a generic example and
should be substituted out with whatever you have specified.
Say you have a group called SneakyBastards defined
in /var/www/passwd/groups. Your httpd.conf should say:
<Directory "/var/www/html/secretstuff">
AuthType Basic
...
Require group SneakyBastards
</Directory>
Make sense?
Cheers,
James
--
Cold, adj.:
When the local flashers are handing out written descriptions.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: .htaccess file |
|
| Back to top |
|
 |  |
External

Since: Jan 17, 2005 Posts: 6
|
(Msg. 5) Posted: Thu Jan 20, 2005 12:35 pm
Post subject: Re: .htaccess file [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thanks James. I knew something had to be wrong with that, just needed a
little heads up.
Centurion wrote:
> Mike U. wrote:
>
>
>>I have set up an .htaccess file in a private directory that I am
>>hosting. I included the Directory in httpd.conf as such...
>><Directory "var/www/html/sercretstuff">
>> AuthType Basic
>> AuthName "By Invitation Only"
>> AuthUserFile /var/www/passwd/passwords
>> AuthGroupFile /var/www/passwd/groups
>> Require group GroupName
>></Directory>
>>
>>And the following is true...
>>passwords is the file created with the htpasswd command.
>>groups is a file consisting of the user names as such
>>user1 user2 user3
>>
>>Everything appears to work ok, except when I browse to that directory
>>within InternetExplorer, I am asked for a user name and password and
>>when I enter the ones that I have set up , I am not allowed access still.
>>Did I do something wrong here? The part that doesn't look right to me
>>is the last line in the Directory section...Require group GroupName. It
>>just looks weird to me but that is how they show it on httpd.apache.org.
>
>
> Replace "GroupName" with the actual name of the group
> in /var/www/passwd/groups. "GroupName" is just a generic example and
> should be substituted out with whatever you have specified.
>
> Say you have a group called SneakyBastards defined
> in /var/www/passwd/groups. Your httpd.conf should say:
>
> <Directory "/var/www/html/secretstuff">
> AuthType Basic
> ...
> Require group SneakyBastards
> </Directory>
>
> Make sense?
>
> Cheers,
>
> James<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: .htaccess file |
|
| Back to top |
|
 |  |
|