Author Topic: How i can change nginx config template  (Read 12108 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How i can change nginx config template
« 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?

Offline
***
Re: How i can change nginx config template
« Reply #1 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




« Last Edit: January 15, 2018, 07:36:08 AM by locvfx »

Offline
*
Re: How i can change nginx config template
« Reply #2 on: January 28, 2018, 06:26:13 AM »
Hey locvfx, thanks for your answer.  ;D