帮助&资讯

网络教学系统 — EduSoho网络教学系统开启HTTPS出现跨域问题怎么办?

2020-12-14 14:49:14

检查自己的nginx配置

nginx需要设置fastcgi_param 值为on,在官方教程中,EduSoho https的nginx配置有两处需要改为"fastcgi_param on;",完整代码块参考如下: location ~ ^/(app|app_dev)\.php(/|$) { fastcgi_pass 127.0.0.1:9000; fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param HTTPS on; fastcgi_param HTTP_X-Sendfile-Type X-Accel-Redirect; fastcgi_param HTTP_X-Accel-Mapping /udisk=/var/www/edusoho/app/data/udisk; fastcgi_buffer_size 128k; fastcgi_buffers 8 128k; } location ~ \.php$ { # [改] 请根据实际php-fpm运行的方式修改 fastcgi_pass 127.0.0.1:9000; fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param HTTPS on; fastcgi_param HTTP_PROXY ""; }
广告位
即刻开始,免费体验 EduSoho 强大功能