[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] shtm passing on the raq3



Hi Koroi,

Forgive me if I cover things you've already checked :)

But first off, how are you searching for the .htaccess file?
If you are using an ls command, or other directory listing, this file will
not show up.
The dot designates the file as a hidden file, meaning others can't see it by
default.
This is done deliberately in this case as a security procaution, to prevent
webusers from downloading your .htaccess file, and potentially gaining
information regarding a site's access.
In order to see this file with an ls command, you have to add an option.
ls -a
shows hidden files.
ls -la
will also list them, as well as information about all the files in that
directory.

Now, .htaccess files specify where the .htpasswd file is for that .htaccess
file.
The .htaccess file usually says 'Require user=whatever' to specify the
username.
Anyway, the usernames and passwords are both listed in the associated
.htpasswd file.
The passwords in this are encrypted using a standard UNIX hash database
form.  This format is identical to the one used in the /etc/passwd file.
You can actually cut and paste the encrypted versions of the passwords from
a .htpasswd file and the /etc/passwd file (in order to import/export
passwords without actually knowing them).
In order to insert a password into an .htpasswd file, you have to run the
binary program on the server.  If you don't know where that is, just do a
'locate htpasswd' and run it from the command line.  This will prompt you
for the username to put in, and the password.

Now, as for the AddType portion, I'm a bit confused as to what you are
trying to accomplish.
Do you want the change what the .htaccess file authenticates against?

Thanks,
Paul Sutter
Internet Services Administrator
CommTel Internet
http://www.ctel.net


----- Original Message -----
From: Koroi Seniloli <koroi@xxxxxxxxxxx>
To: <cobalt-developers@xxxxxxxxxxxxxxx>
Sent: Sunday, October 29, 2000 5:00 PM
Subject: [cobalt-developers] shtm passing on the raq3


> HI all,
>
> I was wondering, how do you well edit the '.htaccess' so i can add in the
> extension of file to be passed as whatever i want
>
> eg I wana add this line on to it
>
> AddType text/x-server-parsed-html .shtm
>
> so anyone know how to do this because i find that when I uploaded the file
> '.htaccess' it just disapeared into thin air ,
>
> hmm weired but I gather there is somehere in the raq3 that has that part
:)
>
> thanks a lot
>
> roi
> fijivillage.com
>
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
>