Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

password protect and group config...

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache 2.0 -- Trouble with Virtual hosts + SSL  
Author Message
nickyboy

External


Since: Jul 24, 2003
Posts: 4



(Msg. 1) Posted: Fri Jul 25, 2003 2:08 pm
Post subject: password protect and group config...
Archived from groups: alt>apache>configuration (more info?)

Hi Folks,

I've got a bit of a problem that I'm getting lost with....

Each of my customers sites have log files and Webalizer processes them to
provide the pretty pictures. I want to provide an easy way to password
protect each set of log files with users current username and password from
a database! EASY you say, I can use mod_auth_mysql or simular... but this
is where is gets a little complex...



I want to display the logs through my support site so each set of logs is
available at: (www.site.co.uk/support/logs/acc_id/) If I just setup
mod_auth_mysql and protect /support/logs/ then it only checks for a username
and password - so any of my customers could access anyone elses log files!
I don't want to have to setup <Location /support/logs/acc_id/> for each
account because that would be VERY long winded, I'd rather just have a
single directive like <Location /support/logs/*/> where * represents the
acc_id that can then be checked against the username. My database is fairly
simple, it's got a

table_customer with acc_id, username, password, (and a few other contact
details). But how would i go about confirming the that * directory was the
same as the acc_id in the database?
I wondered if I could use UserDir as that allows a bit of use of the /*/
representing a bit of a wildcard (the unix users and those in the support
database are completely different) and I dont' think that would get me
anyway...

I maybe able to use groups with mod_auth_mysql, something like

<Location /support/logs/*/>

AuthName Support Site

AuthType Basic

AuthMySQLHost localhost

AuthMySQLDB authdata

etc

require group /*/

</Location>

but I'm not sure how to get this working dynamically or on the specific
context, the example above would surely just allow any group? The best
documentation of the version of mod_auth_mysql I can find is at
http://www.doc.eng.cmu.ac.th/ldp/howto/mod_auth_mysql-1.11/ 0

Obviously in a php script this would take no time at all, but I need this to
work to protect the whole folder and not just a script.

Any ideas or suggestions (or solutions) greatly appreciated...

TIA
nickyboy

 >> Stay informed about: password protect and group config... 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache 2.0.43 PHP 4.2.3 Windows 2000 My config .. - I got Apache 2.0.43 running on Windows 2000. I've intalled PHP 4.2.3 into c:\php-4.2.3-Win32 Both programs are binary. Im using a step by step guide from a new book i bought. The two programs were supplied with it. It says to configure apache to use..

apache not passing jsp requests to tomcat (config looks ok) - Looks like everything is configured correctly, _but_ when i navgate to execute a jsp page within the JkMount path (httpd.conf), the apache webserver displays it as html/plain text, so it looks like apache is not handing off to mod_jk and the tomcat..

ftp Config ( i know this is an apache forum, but i couldnt.. - I'm using slackware linux 9, on a p133 box, as a webserver, and would like to be able to ftp stuff onto it as well as removing it, but no matter how i try, i cant do this: How do i make a ftp directory with ftp user R/W access? using proftpd as..

local virtual host config for testing setup problem - Ive got a dynddns address which works fine frmo the outside world. I want to set up another virtual host for testing purposes accessible only from my machine. from vhosts.conf ################# Named VirtualHosts NameVirtualHost * <VirtualHost *>....

adding document include path to working shtml config - adding document include path to working shtml config in Apache 1.3.x I have server side includes working but would like to set a path for include statements to look in --other than current directory--. i.e. If the #include file doesn't insist in....
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]