Nginx Web Templates
Posted: Sun Jul 31, 2016 7:55 pm
Hello, this is first post on this excellent forum.
Recently I created a custom template for wordpress microcache in vestacp using jessie or centos.
After recompile nginx, the template worked smoothly and syntax ok by nginx.
The problem I noticed a bug in selecting templates. I called template wpmicrocache, then add a domain, marking this template, vestacp made no changes in nginx.conf then changing template for wordpress, my template was loaded.
I noticed that the same problem also occurs with other templates installed by vestacp.
You select moodle and it does not work and then just change to wordpress the moodle template happens to be born in nginx.conf.
Some templates cause problem, after you change to another template and part of the previous template code remains causing syntax error in nginx.
1 - Add a domain
2 - Select Wordpress2 template
3 - Check nginx.conf and Wordpress2 template is not loaded
4 - Change to Wordpress template
5 - Now, Wordpress2 is loaded
Recently I created a custom template for wordpress microcache in vestacp using jessie or centos.
After recompile nginx, the template worked smoothly and syntax ok by nginx.
The problem I noticed a bug in selecting templates. I called template wpmicrocache, then add a domain, marking this template, vestacp made no changes in nginx.conf then changing template for wordpress, my template was loaded.
I noticed that the same problem also occurs with other templates installed by vestacp.
You select moodle and it does not work and then just change to wordpress the moodle template happens to be born in nginx.conf.
Some templates cause problem, after you change to another template and part of the previous template code remains causing syntax error in nginx.
1 - Add a domain
2 - Select Wordpress2 template
3 - Check nginx.conf and Wordpress2 template is not loaded
4 - Change to Wordpress template
5 - Now, Wordpress2 is loaded