X
X
xmoonlight2019-11-29 11:23:44
MySQL
xmoonlight, 2019-11-29 11:23:44

Need mysql->http(s) module under apache. Where to find?

I am looking for a module for the Apache web server to make direct queries to the mysql database from the front via ajax/fetch WITHOUT INTERMEDIARIES!
Let me know if anyone has found it.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
dodo512, 2019-11-29
@xmoonlight

mod_dbd + mod_rewrite

<VirtualHost *:80>
        DBDriver mysql
        DBDParams "dbname=test user=root pass=xxxxxx"

        RewriteMap user2id "dbd:select id from users where name = %s "

        RewriteEngine On

        RewriteRule ^/user2id/([^/]+) http://domain.com/id/${user2id:$1} [R,L]

V
Vladimir Korotenko, 2019-11-29
@firedragon

what happens if someone adds to the request. Maybe that's why it's better to use php

V
Viktor Taran, 2019-11-29
@shambler81

If you had written the task in more detail, then you would have been answered in more detail, however, based on
something like this, probably.
at the moment there is the most standard way is to use PHP
it is the most reasonable and easiest, there is no need to turn the wheel for this.
Please describe the task in more detail and why it is impossible to use the usual methods and look for the mythical module on Apache?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question