|
Home > Archive > Apache Server configuration support > November 2006 > .htaccess problems
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
.htaccess problems
|
|
| Mike Morley 2006-11-27, 1:19 pm |
| I have created a .htaccess file and created a .htpasswd file and the
user to login. However when I click the link to test the access
restriction is in place it goes straight to the page instead of bringing
up the username and password request dialog.
I have edited my httpd.conf file to "Allowoverride All" and double
checked the paths in my .htaccess file.
My .htaccess file is as follows:
AuthUserFile /var/www/html/careerGrad/private
AuthGroupFile /dev/null
AuthName "CareerGrad Members Area"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
Can anybody suggest where I might be doing wrong?
| |
| Davide Bianchi 2006-11-27, 1:19 pm |
| On 2006-11-27, Mike Morley <nobody@nowhere.com> wrote:
> I have edited my httpd.conf file to "Allowoverride All" and double
> checked the paths in my .htaccess file.
And did you also restarted apache after changing the httpd.conf file?
> My .htaccess file is as follows:
>
> AuthUserFile /var/www/html/careerGrad/private
I wouldn't put the user file in the www tree, put it somewhere else,
as long as Apache can read it.
Davide
--
Tip of the day:
The Windows 95 CD-ROM makes an excellent skeet shoot target.
| |
| Mike Morley 2006-11-27, 1:19 pm |
| Davide Bianchi wrote:
> On 2006-11-27, Mike Morley <nobody@nowhere.com> wrote:
>
> And did you also restarted apache after changing the httpd.conf file?
>
>
> I wouldn't put the user file in the www tree, put it somewhere else,
> as long as Apache can read it.
>
> Davide
>
Yes I restarted apache.
The server I am testing it on is only my test bed. The server I am going
to put it on won't allow me access to anywhere other than my own home
directory. The smeg heads won't even allow me SSH access 
| |
| Davide Bianchi 2006-11-27, 1:19 pm |
| On 2006-11-27, Mike Morley <nobody@nowhere.com> wrote:
> The server I am testing it on is only my test bed. The server I am going
> to put it on won't allow me access to anywhere other than my own home
> directory.
And you don't have a directory inside your home directory that is outside
the 'www' tree? But anyway, if you restarted apache and don't get the
authentication, check the error_log and see if there are any clues.
Also, be sure you enabled .htaccess (something make me think that a
'allowoverride none' is overriding your configuration).
Davide
--
Yeah, but they are good at making toys. I mean look at Windows...
-- From a Slashdot.org post about Microsoft's X-Box console
| |
|
|
"Mike Morley" <nobody@nowhere.com> schreef in bericht
news:OyDah.3267$J4.2304@newsfe7-win.ntli.net...
>I have created a .htaccess file and created a .htpasswd file and the user
>to login. However when I click the link to test the access restriction is
>in place it goes straight to the page instead of bringing up the username
>and password request dialog.
>
> I have edited my httpd.conf file to "Allowoverride All" and double checked
> the paths in my .htaccess file.
>
> My .htaccess file is as follows:
>
> AuthUserFile /var/www/html/careerGrad/private
> AuthGroupFile /dev/null
> AuthName "CareerGrad Members Area"
> AuthType Basic
>
> <Limit GET POST>
> require valid-user
> </Limit>
>
> Can anybody suggest where I might be doing wrong?
Your browser may not even request the page ... and show the cached
version -checj the access_log-.
Further, if you have no group file, just skip this directive AuthGroupFile.
Why do you limit the validation to GET and POST, it impies methods like PUT
and DELETE are available to everyone ...
HansH
| |
| Mike Morley 2006-11-27, 1:19 pm |
| Davide Bianchi wrote:
> On 2006-11-27, Mike Morley <nobody@nowhere.com> wrote:
>
> And you don't have a directory inside your home directory that is outside
> the 'www' tree? But anyway, if you restarted apache and don't get the
> authentication, check the error_log and see if there are any clues.
> Also, be sure you enabled .htaccess (something make me think that a
> 'allowoverride none' is overriding your configuration).
>
> Davide
>
I am relatively new to web server configuration and don't want to
knacker anything just yet as I don't have the time to mess around trying
to fix it. I have emptied my cache so that shouldn't be a problem also
nothing seems to be standing out in the error_log.
|
|
|
|
|