Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

.htaccess


Guest

Recommended Posts

I just recently installed a copy of osCommerce(ms2.2)

unfortunately the process went smooth. Now my problem is that i need to know i can set up password on .htaccess to secure the admin area.

Link to comment
Share on other sites

Here's how mine is setup ...

 

.htpasswd in /usr/local/apache

 

It's contents is nothing but a username and encrypted passwod in the format of ...

 

username:<encrypted password>

 

Go to http://www.euronet.nl/~arnow/htpasswd/ to get your encryped password.

 

In my admin directory (default location is <docroot>/catalog/admin) lives the

.htaccess file, it contains ...

 

AuthUserFile /usr/local/apache/.htpasswd

AuthGroupFile /dev/null

AuthName EnterPassword

AuthType Basic

require user <your username>

 

Then in httpd.conf, locate the line that says...

 

"AllowOverride None"

 

and change it to...

 

"AllowOverride All".

 

Also in httpd.conf locate the line that says...

 

"Options Indexes FollowSymLinks MultiViews"

 

and change it to

 

"Options None"

 

This last bit should turn off allowing directory listings

 

Restart Apache and give it a try -- works for me.

Link to comment
Share on other sites

I would like to thank all of you for your big help you've gave me, I got that admin area secured with password; but now i'm epxriencing another problem. The problem is now each i put my password in; it does not regonize the password. I tried several times ad I delete the file and load it back up again still the same.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...