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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
"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. |
|
|||
|
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. |
|
|||
|
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? |