Warning: Illegal string offset 'switch' in /www/wwwroot/fun.lightweb.vip/wp-content/themes/onenav/inc/inc.php on line 2807
在迁移网站的时候,大家往往都会使用宝塔一键迁移,但是确实也会面临一些问题,首先docker容器的资源无法进行转移,再者就是会报错,且网站无法访问:
nginx: [emerg] unknown "connection_upgrade" variable nginx: configuration file /www/server/nginx/conf/nginx.conf test failed
不太清楚为什么会出现这个错误,但是我找到了解决办法,就是在
也就是在Nginx管理的配置修改中,在底部加上代码:
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
然后就发现没有报错了,网站也能正常访问了!
Warning: Illegal string offset 'switch' in /www/wwwroot/fun.lightweb.vip/wp-content/themes/onenav/inc/inc.php on line 2807
Warning: Illegal string offset 'switch' in /www/wwwroot/fun.lightweb.vip/wp-content/themes/onenav/inc/inc.php on line 2807