Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

.htaccess problem


simplyclesha

Recommended Posts

Hello.

 

I'm trying to password protect my admin and created a .htaccess file. When I try to test the file I'm getting a 500 internal server error. Here's the file I created and the server is Apache.

 

AuthUserFile /full/path/to/.htpasswd

AuthName "Administration Log In"

AuthType Basic

require user janedoe

janedoe:password

 

I saved the file as .htaccess and uploaded to the server as ASCII.

Thanks!

Clesha

Link to comment
Share on other sites

LOL (had to, sorry)

 

It takes two files, the .htpasswd file is missing, look at the first line.

 

If you can do this via your server control panel it's much better because it will handle it and put the .htpasswd file out of user accessible web space.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

LOL (had to, sorry)

 

It takes two files, the .htpasswd file is missing, look at the first line.

 

If you can do this via your server control panel it's much better because it will handle it and put the .htpasswd file out of user accessible web space.

 

 

 

It's ok to laugh AlanR. I thought I was missing something, but since this was my first time creating this file I didn't think to create a second one. I also didn't read anything about creating 2 files, only the one.

 

What info goes into the .htpasswd file?

Thanks!

Clesha

Link to comment
Share on other sites

Actually, I found 2 websites to write the file with Mr. Google, but didn't realize that it needed to be in 2 files. It only speaks about the .htaccess file without going into what should be in the .htpasswrd file. I was able to encrypt the password, I just need to add the .htpasswd file.

 

Thanks for the help and the site.

Thanks!

Clesha

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...