If I have a file with a name mysite.confthat is stored in /etc/nginx/conf.d. Is there a way to get a string value 'mysite'from a conf file?
I want to symbolize a common .conf file several times, because they are all identical, except for one small line. As a quick example, instead:
server {
access_log /var/log/nginx/mysite_access.log;
error_log /var/log/nginx/mysite_error.log;
}
I want to do this:
server {
access_log /var/log/nginx/$filename_access.log;
error_log /var/log/nginx/$filename_error.log;
}
I want to name the file mysite.conf, and I want symlink to have 5 more of them:
/etc/nginx/conf.d/mynextsite.conf
/etc/nginx/conf.d/myothersite.conf
etc
, conf . , uwsgi %n. . . nginx conf?