> -----Original Message-----
> From: Edwin Linux Fan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 23, 2000 11:11 PM
> To: [EMAIL PROTECTED]
> Subject: [plug] New Apache Admin Needs Your Advice...
>
>
> Hi guys!
> I put up a couple of web sites for some companies.
> Now they want to post news about their happenings by
> themselves. Maybe a scrollable news window...
>
> I'm thinking a password protected entry using .htpassword
> Then a CGI script ala guestbook but only to the owner.
>
> I don't know where to start!
>
> Can you lead me out of this problem?
> What should I use?
htpasswdd will be a good start but calvary for maintaining many entries.
You can make use of mod_auth_mysql. It's an apache module. You will have to
add Auth_MySQL_Info in your httpd.conf
Auth_MySQL_Info localhost myusername mypassword
As an example:
<Directory "/usr/local/apache/htdocs/phpMyAdmin">
Options Indexes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
And I have a file named .htaccess under /usr/local/apache/htdocs/phpMyAdmin
and it contains
AuthName "Mysql Administration"
AuthType Basic
Auth_MySQL_DB phdb
Auth_MySQL_Password_Table php_admin
Auth_MySQL_Username_Field username
Auth_MySQL_Password_Field password
Auth_MySQL_Encryption_Types MySQL
Auth_MySQL_Empty_Passwords off
Auth_MYSQL on
require valid-user
You can also make use of LDAP. But I haven't tried it. I'm sure, Michael M.
can help you.
...hth
--
.-------------------------------------------------------.
o^o | Ronneil Camara, | [EMAIL PROTECTED] |
/V\ |--------------------| +632 6354086 +63917 5326993 |
// \\ | "The only way to `----------------------------------|
/( )\ | stop a hacker is to think like one." |
^^-^^ | ...brilliant misguided youth |
`-------------------------------------------------------'
-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]