Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Protect admin


lapo4ka18

Recommended Posts

create an .htaccess file and drop it in the directory..

 

Then update the apache.conf to reflect the same directives you created in your .htaccess file.

 

Suggest the following.

 

Created a text file in the admin directory called .htaccess

 

In the textfile, add the following:

 

AuthType Basic

AuthName "Password Required"

AuthUserFile /path/to/your/.htaccess

 

In your httpd.conf add:

 

<Directory /path/to/your/osc/admin>

AuthType Basic

AuthName "Password Required"

AuthUserFile /path/to/your/.htaccess

</Directory>

 

Now at shell type in htpasswd and follow the prompts.

 

For more information on this, visit www.apache.org ..

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...