Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin security and passwording...


Austin519

Recommended Posts

Posted

So I am editing my httpd.conf in Apache 2.0.39, and my goal (for now) is to only allow in localhost. So I have put in:

 

<Directory "C:/FoxServ/www/catalog/">

AllowOverride None

Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

<Limit GET POST>

Order allow,deny

Allow from all

</Limit>

<LimitExcept GET POST>

Order deny,allow

Deny from all

Allow from 127.0.0.1

</LimitExcept>

</Directory>

 

<Directory "C:/FoxServ/www/catalog/admin/">

AllowOverride None

Order deny,allow

Deny from all

Allow from 127.0.0.1

</Directory>

 

Works perfectly. This is amazing because I am totally new at this. Now, what I would RATHER have, instead of only being able to connect through my localhost to access it (I literally have to type in localhost/blahlblah), I would rather password protect it so I could do it from anywhere. My problem is that I tried to use the included htpasswd, doesn't work so it seems in Win32. Popped up a CMD window, typed in what I wanted and this is what I got:

 

* C:FoxServApachebin>htpasswd -c C:MyPasswdFile MyUserName

* htpasswd: -c and -n options conflict

* C:FoxServApachebin>

 

I have no idea what it means saying there's a conflict.

 

So just for kicks, I try this:

* C:FoxServApachebin>htpasswd C:MyPasswdFile MyUserName

* Automatically using MD5 format.

* New password: **********

* Re-type new password: **********

* Adding password for user MyUserName

 

And the CMD window crashes.

 

Any ideas guys? I know I need to make this file before I go any further...

 

Austin519

Archived

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

×
×
  • Create New...