osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-26-2004, 01:47 PM
Lurker
 
Join Date: Feb 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
cloudie
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 02-26-2004, 02:58 PM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-27-2004, 02:06 AM
Lurker
 
Join Date: Feb 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
cloudie
Default

thanks heaps jon!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 10:41 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax