I need a domain name (instead of localhost
) in my dev environment to be able to test Facebook sign in. So I've added the following to my /etc/hosts
file:
127.0.0.1 dev.mydomain.com
But what happens when I restart server and try to access http://dev.mydomain.com:3000
is that if first redirects to https
and then returns this in the server log:
2017-05-20 15:23:31 +0200: HTTP parse error, malformed request (): #
2017-05-20 15:23:31 +0200: ENV: {"rack.version"=>[1, 3], "rack.errors"=>#>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"puma 3.8.2 Sassy Salamander", "GATEWAY_INTERFACE"=>"CGI/1.2"}
Any idea what my problem might be, so that I access my app as I successfully can at localhost:3000
?