osCmax v2.5 User Manual
Results 1 to 3 of 3

can someone pleaseee help? .htaccess trouble

This is a discussion on can someone pleaseee help? .htaccess trouble within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; hi, i'm currently installing OSC offline on my local computer and have come to the last few steps. i am ...

      
  1. #1
    Lurker
    Join Date
    Feb 2004
    Posts
    3
    Rep Power
    0


    Default can someone pleaseee help? .htaccess trouble

    hi,

    i'm currently installing OSC offline on my local computer and have come to the last few steps.

    i am meant to:

    -Password protect your /catalog/admin dir using .htaccess and the oscdox tells me to:

    add this code to my .htaccess file
    AuthType Basic
    AuthName "Locked Area"
    AuthUserFile /home/youraccount/.htpasswds/admin/passwd
    require valid-user

    the thing is, there is a .htacess file in
    www/catalog
    www/catalog/admin
    www/catalog/includes
    www/catalog/pub

    which of the .htaccess files should I add the code to? or am i meant to write a new .htaccess file?

    also, i am meant to creat a .htpasswd file. after i create this file, which folder do I put the .htpasswd file in??

    pleaseeee help!

  2. #2
    Active Member
    Join Date
    Jan 2003
    Location
    Surrey, UK
    Posts
    126
    Rep Power
    0


    Default

    The htaccess password protects all directories underneath, as well as the one it is in, it by default. So put it in /admin.

    There are many functions the htaccess carries out besides password-protecting, the one in includes prevents direct http acces for example, to stop people requesting sensitive files. So leave them as they are.

    You will need to generate an htaccess password, the easiest way is through a web facility eg here:

    http://www.kxs.net/support/htaccess_pw.html

    (there are many others like that).

    then store the file containing the userassword BENEATH your web root, obviously you don't want anyone to access the file. You pass the path to the file in the htaccess as above, the example they used was /home/youraccount/.htpasswds/admin/passwd

    it will vary for your server.


    hope this helps


    jon

  3. #3
    Lurker
    Join Date
    Feb 2004
    Posts
    3
    Rep Power
    0


    Default

    thanks heaps jon!

Similar Threads

  1. .htaccess question
    By cupido in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 06-25-2004, 05:09 PM
  2. Trouble with .htaccess /.htpasswd
    By DancesWithData in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 04-11-2004, 12:21 PM
  3. htaccess
    By nisse in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 11-12-2003, 03:35 PM
  4. Creating the .htaccess file
    By DJ-Loki in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 07-02-2003, 06:42 AM
  5. Help with .htaccess and htpasswd please
    By ozstar in forum osCommerce 2.2 Installation Help
    Replies: 5
    Last Post: 03-12-2003, 12:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •