WebServers vhost templates not applied

Started by gruz, April 26, 2020, 05:35:07 AM

Previous topic - Next topic

gruz

Centos 7
CWPpro version: 0.9.8.963

I saw this topic forwarding to contact the developers directrly http://forum.centos-webpanel.com/index.php?topic=8573.msg30138#msg30138
And this older one http://forum.centos-webpanel.com/index.php?topic=5908.msg20575#msg20575


I set my CWP to use nginx only





Next I follow this manual and create my templates
https://wiki.centos-webpanel.com/webservers-vhost-templates

/usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/nginx/php-fpm/
default-gruz.stpl
default-gruz.tpl


Next I  save my template





I also get error
Notice: Undefined index: apache_template-type-default in /usr/local/cwpsrv/htdocs/resources/admin/modules/WebServers_conf.php on line 0






Next I check my vhosts here /etc/nginx/conf.d/vhosts

The file pair is generated from
/usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/nginx/php-fpm/default.tpl
/usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/nginx/php-fpm/default.stpl


I also tried selecting predefined templates like force-https - it still uses the default.[s]tpl  pair.


gruz

I contacted the developers, but get nothing.

"all looks ok, you are probably mixing nginx+php-fpm vhost and PHP templates for php-fpm which are used with nginx.
Please check our docs and wiki for detailed info about templates."

They say it works, though it doesn't. I spent hours before my request and after checking. Just loosing time.

I'm frustrated.




rcschaff

Default vhost type should be set to php-fpm I believe.
Google Hangouts:  rcschaff82@gmail.com