可以摆脱此问题。 具有三个nginx 1.14,一个用于负载均衡,两个用于在dotnet Web应用程序上重定向的Nginx Web服务器。 我在负载平衡上使用SSL,这是我的conf:
"message": "Class App\\GraphQL\\Type\\UserType does not exist",
"exception": "ReflectionException",
"file": "C:\\wamp64\\www\\laravel-project\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php",
"line": 779,
在两个Nginx上,我获得默认站点-可用的conf:
/etc/nginx/conf.d/load-balancer.conf
upstream backend {
# least_conn;
server 172.22.69.102;
server 172.22.69.103;
}
# This server accepts all traffic to port 80 and passes it to the upstream.
# Notice that the upstream name and the proxy_pass need to match.
server {
listen 80;
server_name xxx.ddns.net;
return 301 https://$server_name$request_uri;
#location / {
# proxy_pass http://backend;
#}
}
server {
listen 443 ssl;
server_name xxx.ddns.net;
ssl_certificate /etc/nginx/ssl/xxx_ddns_net.crt;
ssl_certificate_key /etc/nginx/ssl/monserveur.key;
# error_log /var/log/error.log error;
# access_log /var/log/acess.log error;
location / {
proxy_pass http://backend;
}
}
我一直收到http错误400
任何帮助都会感激