osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Help with .htaccess and htpasswd please

This is a discussion on Help with .htaccess and htpasswd please within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I have ssl on a shared server and it seems to work (padlock) except no header images in admin. I ...


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 03-06-2003, 06:45 PM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 124
Thanks: 10
Thanked 0 Times in 0 Posts
Rep Power: 6
ozstar is on a distinguished road
Default Help with .htaccess and htpasswd please

I have ssl on a shared server and it seems to work (padlock) except no header images in admin.

I want to use .htaccesss to protect my Admin dir catalog/admin/

This is my .htaccess file..

# $Id: .htaccess,v 1.1 2002/07/21 23:41:41 hpdl Exp $
#
# This is used with Apache WebServers
#
# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers
#
# For this to work, you must include the parameter 'Limit' to the
# AllowOverride configuration
#
# Example:
#
#<Directory "/usr/local/apache/htdocs">
# AllowOverride Limit
#</Directory>
#
# 'All' with also work. (This configuration is in your
# apache/conf/httpd.conf file)

<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>

AuthType Basic
AuthUserFile /home/myID/leagueandlegends-www/catalog/.htpasswd
AuthName "Leagues Shop Security"
require valid-user

DirectoryIndex default.php index.php index.htm index.html

-------------------------

I have it in the catalog/admin/ directory

I also have a .htpasswd text file with just 1 line in it...

ID:encrypted password

as supplied by http://www.kelv.net/programming/htaccess/


I uploaded this also to the /catalog/admin/ dir

--------------------------------

Problem

The panel keeps asking for the ID/pwd even tho' I have checked it is correct.

Obviously I have done or not done something!

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 03-06-2003, 09:50 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Quote:
I uploaded this also to the /catalog/admin/ dir
You should never put your .htpasswd file in a web accessable directory. Put it above your www tree. But, if you are not getting in, it is most likely a path problem. It is not finding your .htpasswd file. Also make sure you uploaded it in ASCII, not binary.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-07-2003, 03:03 AM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 124
Thanks: 10
Thanked 0 Times in 0 Posts
Rep Power: 6
ozstar is on a distinguished road
Default

Hi,

This is in my lowest dir..

/leagueandlegends-mail
/leagueandlegends-logs
/leagueandlegends-secure
/leagueandlegends-www
/www/

The .htpasswd file is in this same lowest dir which I uploaded it to in ascii.

The .htaccess file is in /catalog/admin/

It has the following path it.

AuthType Basic
AuthUserFile /league/leagueandlegends-www/catalog/admin/.htpasswd
AuthName "Leagues Shop Security"
require valid-user

I know it is incorrect as the file is not in admin. But how then do I write the path to the dir where it is?

BTW. All my files are duplicated in secure, -www and www dirs

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-07-2003, 10:42 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Ok, that is the problem. Your .htaccess file is looking in the wrong place for .htpasswd

You need to find out what your accounts home path is. It is usually something like:

/home/league/

That is where you want to put your .htpasswd dir and file. Then in your .htaccess file, change the AuthUserFile directive to /home/league/.htpasswd

Make sure you have the right path, or it will not work. Check with your host for this info.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 03-08-2003, 02:55 PM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 124
Thanks: 10
Thanked 0 Times in 0 Posts
Rep Power: 6
ozstar is on a distinguished road
Default

Thank you.

Yes I am sure it is /home/league/ however with .htaccess in admin and .htpasswd in the root (in home/league/), I still can't get any glee with this thing. I have contacted my ISP and hope they can enlighten my darkness!

I have in the meantime installed the Admin Authen contrib and it is fine until I get it fixed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 03-12-2003, 01:45 AM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 124
Thanks: 10
Thanked 0 Times in 0 Posts
Rep Power: 6
ozstar is on a distinguished road
Default

Okay !! Glee at last! I'm still not sure what happened and why but it now works.

I rewrote both files, redid a new encrypt pwd and treid it - still no go.

Then I remembered..

Undo the changes for the Authen Contrib. Did it ad whammo !

AS I said, I'm not sure what it was, miust have been a dot or ' or something I just didn't see. I don't know.

Anyway Michael, I do appreciate all your patience and help.

I'm slowly cruising thru this whole oscom land!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 05:09 PM
Trouble with .htaccess /.htpasswd DancesWithData osCommerce 2.2 Installation Help 1 04-11-2004 12:21 PM
htpasswd problem MonkeyBoy osCommerce 2.2 Installation Help 1 12-23-2003 07:24 AM
htaccess nisse osCommerce 2.2 Installation Help 1 11-12-2003 04:35 PM


All times are GMT -8. The time now is 02:16 AM.


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