Hi there,
We want to include a certain directive in the nginx configuration for when users have the SSL CA Cert option enabled to include intermediate certificates. I have added the following:
|*if CACERT!=""|
ssl_trusted_certificate /usr/local/directadmin/data/users/|USER|/domains/|DOMAIN|.cacert;
|*endif|
to this file: /usr/local/directadmin/data/templates/custom/nginx_server_secure.conf + nginx_server_secure_sub.conf
Afterwards I did a rewrite of the httpd conf:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d800
However it is never included in the nginx.conf file.
I do require the check because the .cacert file is only created when people actually enable this option in the control-panel, so otherwise nginx would give an error about the files not existing.
Does anyone have an idea?
Thanks!
We want to include a certain directive in the nginx configuration for when users have the SSL CA Cert option enabled to include intermediate certificates. I have added the following:
|*if CACERT!=""|
ssl_trusted_certificate /usr/local/directadmin/data/users/|USER|/domains/|DOMAIN|.cacert;
|*endif|
to this file: /usr/local/directadmin/data/templates/custom/nginx_server_secure.conf + nginx_server_secure_sub.conf
Afterwards I did a rewrite of the httpd conf:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d800
However it is never included in the nginx.conf file.
I do require the check because the .cacert file is only created when people actually enable this option in the control-panel, so otherwise nginx would give an error about the files not existing.
Does anyone have an idea?

Thanks!