How i can change nginx config template

Started by ahmadnurus, November 23, 2017, 04:31:04 PM

Previous topic - Next topic

ahmadnurus

I use apache + nginx + varnish web server option. I have configured my nginx and varnish with port ssl 443 in nginx. But when I rebuild apache vhost, nginx and varnish configuration are also rebuilt. so I have to reconfigure nginx and varnish. I want when I rebuild apache vhost, it rebuilds the nginx vhost configuration with my template.

any solution?

locvfx

#1
Quote from: ahmadnurus on November 23, 2017, 04:31:04 PM
I use apache + nginx + varnish web server option. I have configured my nginx and varnish with port ssl 443 in nginx. But when I rebuild apache vhost, nginx and varnish configuration are also rebuilt. so I have to reconfigure nginx and varnish. I want when I rebuild apache vhost, it rebuilds the nginx vhost configuration with my template.

any solution?

Go to Apache settings > edit Apache vhosts
You will see the section "CWP Configuration Templates for nginx_proxy_vhost"

Customize it then save, Don't forget to rebuild all templates and restart Nginx.
You are also able to change other templates (Apache, apache_ssl, nginx_proxy_vhost_ssl, named_conf, named_new_dns_zone) All in one place





ahmadnurus