Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Auth Apache 2.4 subdir against MySQL? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5362

PostPosted: Mon Jul 14, 2014 5:26 pm    Post subject: Auth Apache 2.4 subdir against MySQL? [SOLVED] Reply with quote

How do I go about authenticating a subdir of a public web site using credentials stored in a MySQL table? The version of Apache I have is 2.4 and I'm stuck with it.
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Linux 'Tude Tees: http://moodytudetees.com/index.php/linux-tude-tees


Last edited by audiodef on Mon Jul 14, 2014 9:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
hdcg
n00b
n00b


Joined: 07 Apr 2013
Posts: 42

PostPosted: Mon Jul 14, 2014 7:16 pm    Post subject: Reply with quote

Hi,

to protected a single directory you use the location and the require directive. E.g. with mod_xradius you use:

Code:

<Location "/protected">
        AuthType basic
        AuthBasicProvider xradius
        AuthName "Login required"
        Require valid-user
</Location>


You need to configure the proper authentication provider. I do not know if there is any directly using MySQL. mod_xradius can use MySQL as a backend and hence can be used for MySQL based authentication. Whether this fits your needs depends on your exact requirements.

Best Regards,
Holger
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5362

PostPosted: Mon Jul 14, 2014 9:20 pm    Post subject: Reply with quote

Thanks! I appreciate the reply. I went with a different kind of solution. :)
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Linux 'Tude Tees: http://moodytudetees.com/index.php/linux-tude-tees
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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