appnode 添加新网站 nginx 重启后不生效

现象:appnode面板和环境,使用nginx作为web服务。从面板添加站点后,即使多次重启nginx服务后,用域名访问站点,还是访问到nginx的默认页面,配置的站点访问不生效。

尝试:查看站点的配置文件是在 /data/mystack/sites/domain.com/conf/nginx.conf ,但 /etc/nginx/nginx.conf 的配置文件里没有引用。可以在 nginx.conf 配置文件里添加引用,如:

include /etc/nginx/conf.sitemgr.d/*.conf;
include /etc/nginx/conf.sitemgr.d/global/*.conf;
include /etc/nginx/conf.sitemgr.d/global/conf/*.conf;
include /etc/nginx/conf.sitemgr.d/global/conf/default_server/*.conf;

参考:https://help.appnode.com/agent-sitemgr/site-install-wordpress.html

标签: appnode

添加新评论