.htaccess problems

This is a discussion on .htaccess problems within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, Now I've got my server back up and running I am now trying to do what I was ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-09-2006
Tim Gordon
 
Posts: n/a
Default .htaccess problems

Hi,

Now I've got my server back up and running I am now trying to do what I was
trying to when I broke it!

I've got a directory that I need to secure - DIR2. Within DIR2 I have a
..htaccess file as follows:

<Directory "/srv/www/htdocs/DIR1/DIR2">
AllowOveride All
</Directory>
AuthUserFile /srv/www/.htpasswd
AuthName EnterPassword
AuthType Basic
<Limit GET>
require valid-user
</Limit>

And within the www directory I have a .htpasswd:

user:xyzxyx123

I do not get a prompt when I try and access the directory it just lets me
straight in (this is considerably better then yesterday when I couldn't get
to any part of the site, but not what I want!).

Is my syntax ok? Am I going about this in the right way? Should I work in
a different industry?

Any help appreciated. Thanks

Tim

--

I never wish I was not what I was not when I didn't wish what I was not was
not what I am not.


  #2 (permalink)  
Old 02-09-2006
Tim Gordon
 
Posts: n/a
Default Re: .htaccess problems




"Steve" <ThisOne@Aint.Valid> wrote in message
news:pan.2006.02.09.10.21.41.141630@Aint.Valid...
> On Thu, 09 Feb 2006 09:55:32 +0000, Tim Gordon wrote:
>
>> Hi,
>>
>> Now I've got my server back up and running I am now trying to do what I
>> was
>> trying to when I broke it!
>>
>> I've got a directory that I need to secure - DIR2. Within DIR2 I have a
>> .htaccess file as follows:
>>
>> <Directory "/srv/www/htdocs/DIR1/DIR2">
>> AllowOveride All
>> </Directory>
>> AuthUserFile /srv/www/.htpasswd
>> AuthName EnterPassword
>> AuthType Basic
>> <Limit GET>
>> require valid-user
>> </Limit>
>>
>> And within the www directory I have a .htpasswd:
>>
>> user:xyzxyx123
>>
>> I do not get a prompt when I try and access the directory it just lets me
>> straight in (this is considerably better then yesterday when I couldn't
>> get
>> to any part of the site, but not what I want!).
>>
>> Is my syntax ok? Am I going about this in the right way? Should I work
>> in
>> a different industry?
>>
>> Any help appreciated. Thanks
>>
>> Tim

>
> ... and you created .htpasswd using the htpasswd command? There seem to be
> a few too few characters in the encrypted password field for user user.


The name and password aren't real - just an example. I actually created
them on a web site that creates the file for you.

Tim

--

I never wish I was not what I was not when I didn't wish what I was not was
not what I am not.


  #3 (permalink)  
Old 02-09-2006
Steve
 
Posts: n/a
Default Re: .htaccess problems

On Thu, 09 Feb 2006 09:55:32 +0000, Tim Gordon wrote:

> Hi,
>
> Now I've got my server back up and running I am now trying to do what I was
> trying to when I broke it!
>
> I've got a directory that I need to secure - DIR2. Within DIR2 I have a
> .htaccess file as follows:
>
> <Directory "/srv/www/htdocs/DIR1/DIR2">
> AllowOveride All
> </Directory>
> AuthUserFile /srv/www/.htpasswd
> AuthName EnterPassword
> AuthType Basic
> <Limit GET>
> require valid-user
> </Limit>
>
> And within the www directory I have a .htpasswd:
>
> user:xyzxyx123
>
> I do not get a prompt when I try and access the directory it just lets me
> straight in (this is considerably better then yesterday when I couldn't get
> to any part of the site, but not what I want!).
>
> Is my syntax ok? Am I going about this in the right way? Should I work in
> a different industry?
>
> Any help appreciated. Thanks
>
> Tim


.... and you created .htpasswd using the htpasswd command? There seem to be
a few too few characters in the encrypted password field for user user.


  #4 (permalink)  
Old 02-09-2006
Steve
 
Posts: n/a
Default Re: .htaccess problems

On Thu, 09 Feb 2006 10:19:41 +0000, Tim Gordon wrote:

>
>
>
> "Steve" <ThisOne@Aint.Valid> wrote in message
> news:pan.2006.02.09.10.21.41.141630@Aint.Valid...
>> On Thu, 09 Feb 2006 09:55:32 +0000, Tim Gordon wrote:
>>
>>> Hi,
>>>
>>> Now I've got my server back up and running I am now trying to do what I
>>> was
>>> trying to when I broke it!
>>>
>>> I've got a directory that I need to secure - DIR2. Within DIR2 I have a
>>> .htaccess file as follows:
>>>
>>> <Directory "/srv/www/htdocs/DIR1/DIR2">
>>> AllowOveride All
>>> </Directory>
>>> AuthUserFile /srv/www/.htpasswd
>>> AuthName EnterPassword
>>> AuthType Basic
>>> <Limit GET>
>>> require valid-user
>>> </Limit>
>>>
>>> And within the www directory I have a .htpasswd:
>>>
>>> user:xyzxyx123
>>>
>>> I do not get a prompt when I try and access the directory it just lets me
>>> straight in (this is considerably better then yesterday when I couldn't
>>> get
>>> to any part of the site, but not what I want!).
>>>
>>> Is my syntax ok? Am I going about this in the right way? Should I work
>>> in
>>> a different industry?
>>>
>>> Any help appreciated. Thanks
>>>
>>> Tim

>>
>> ... and you created .htpasswd using the htpasswd command? There seem to be
>> a few too few characters in the encrypted password field for user user.

>
> The name and password aren't real - just an example. I actually created
> them on a web site that creates the file for you.
>
> Tim


I don't think you can enable .htaccess in the .htaccess file. Is this
directive set up in the httpd.conf file?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:30 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0