Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon ec2 Meteorjs帐户登录无效的重定向url_Amazon Ec2_Meteor_Haproxy - Fatal编程技术网

Amazon ec2 Meteorjs帐户登录无效的重定向url

Amazon ec2 Meteorjs帐户登录无效的重定向url,amazon-ec2,meteor,haproxy,Amazon Ec2,Meteor,Haproxy,我在AmazonEC2中设置了meteorjs应用程序,并将其绑定到子域,如edev.xyz.com 我已使用HAProxy的以下设置将HAProxy添加到其中: frontend www-http bind 0.0.0.0:80 reqadd X-Forwarded-Proto:\ http default_backend www-backend frontend www-https bind 0.0.0.0:443 ssl

我在AmazonEC2中设置了meteorjs应用程序,并将其绑定到子域,如edev.xyz.com

我已使用HAProxy的以下设置将HAProxy添加到其中:

frontend www-http
        bind 0.0.0.0:80
        reqadd X-Forwarded-Proto:\ http
        default_backend www-backend

frontend www-https
        bind  0.0.0.0:443 ssl crt /home/ubuntu/haproxycert/host.pem
        reqadd X-Forwarded-Proto:\ https
        default_backend www-backend

backend www-backend
       redirect scheme https if !{ ssl_fc }
       #server www-1 171.30.0.185:80 check
        server www-1 127.0.0.1:3000 check
我在模板中添加了loginButtons,但是当我单击带有服务的登录时,它将重定向url作为,而不是

xx.xxx.xxx.xx是ec2实例的ip


如果有人能指出我遗漏了什么或配置中有什么错误,我将不胜感激。

在此之前,您最初是通过浏览器中的ip地址还是通过主机名连接到站点的?不管怎样,his看起来不像是haproxy配置问题。我正在连接主机名。是的,它与meteorjs帐户包比haproxy更相关,但由于我对两者都不熟悉,所以我给出了配置,这样可能有助于理解这个问题