M
M
Mushegh Davtyan2019-06-22 12:55:08
MySQL
Mushegh Davtyan, 2019-06-22 12:55:08

Apache HTTP Authorization via MYSQL query?


ServerAdmin [email protected]
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
DBDriver mysql
DBDParams "host=10.1.1.50 dbname=data user=mysql pass=mysql "
DBDMin 4
DBDKeep 8
DBDMax 20
DBDExptime 300
AuthType Basic
AuthBasicProvider socache dbd
AuthnCacheProvideFor dbd
AuthnCacheContext my-server
Require valid-user
AuthDBDUserPWQuery "SELECT ip FROM users WHERE ip = '%a' and users.status = 1"

How to make it so that when accessing the directory, apache through mysql request authorizes the user by ip address and without entering a login and password?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lazy @BojackHorseman MySQL, 2019-06-22
Tag

but probably not. judging by the dock , he does not know how to transfer ip to the request

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question