Control Web Panel

WebPanel => Apache => Nginx => Topic started by: ahmadnurus on November 23, 2017, 04:31:04 PM

Title: How i can change nginx config template
Post by: 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?
Title: Re: How i can change nginx config template
Post by: locvfx on January 15, 2018, 07:33:48 AM
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




Title: Re: How i can change nginx config template
Post by: ahmadnurus on January 28, 2018, 06:26:13 AM
Hey locvfx, thanks for your answer.  ;D