I am having just a tad bit of difficulty attempting to get the Cobalt RAQ4
to use .htaccess to protect directories.
Below is the exact steps I used to create .htaccess.
telnet into server
su - root
Type into pico editor the following lines
# Access file
allow from all
Exit Pico and save file as .htaccess
Create the .htpasswd file using the following command
/usr/bin/htpasswd -c .htpasswd username
Input password twice and .htaccess is complete! Or at least should be
When I fire up the browser and try to access the protected directory,
there is no password protection of the directory.
Here's where it gets strange!
Earlier I had used .htaccess on another virtual site. The only difference
between the two virtual sites was that the one in which .htaccess worked
Noticing this difference, I enabled FrontPage extensions on the virtual
site via cobalts server internet interface (www.domain.com/siteadmin/) on
the site in which .htaccess did not work. As soon as FrontPage extensions
were added to the virtual site, .htaccess worked, as soon as Frontpage
access was removed it stopped working.
For some reason, the default server configuration does not understand that
it should access .htaccess before displaying directory information. I
believe this may be due to an error in the conf files, however, that is a
little above my knowledge level. Anyone have any suggestions on what
could be the possible problem as this has got me perplexed!
Posted via CNET Help.com