: How to query MySQL to build Nginx configuration file? Is it possible to have a MySQL query in my Nginx config? For example: server { listen 80; $domain
Is it possible to have a MySQL query in my Nginx config?
For example:
server {
listen 80;
$domain = [a way to get the current domain];
$server_info = [a way to do the query (by $domain) and have some info returned];
server_name $serverinfo;
[do stuff]
}
More posts by @Angela700
1 Comments
Sorted by latest first Latest Oldest Best
(Answer by @jOk )
You can use the NginX moudule located at github.com/arut/nginx-mysql-module which allows you to do exactly what you are asking to do.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.