arunoda / meteor-up-legacy

Production Quality Meteor Deployments
MIT License
2.26k stars 395 forks source link

Meteor mupx ssl configuration is not working, still routing to port 80 #496

Open mario589736 opened 9 years ago

mario589736 commented 9 years ago

Hey :) for easier reading here the http://stackoverflow.com/questions/30965148/meteor-mupx-ssl-configuration-is-not-working-still-routing-to-port-80 Stackoverflow Link. Reason for the repost here: No answer on Stackoverflow... we are launching in 7 days so its quite importent for us :) thanks for your help.

Heres my mup.json:

// Configure environment "env": { "PORT": 3000, "ROOT_URL": "https://www.exomatch.com" }, //SSL "ssl": { "certificate": "ssl/ssl.crt", // this is a bundle of certificates "key": "ssl/private.key", // this is the private key of the certificate "port": 443 // 443 is the default value and it's the standard HTTPS port },

Here are the automatically generated docker container:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 454d0d829b8b meteorhacks/mup-frontend-server:latest "/start.sh" 9 minutes ago Up 9 minutes 0.0.0.0:443->443/tcp exomatch-frontend 71398a208be1 meteorhacks/meteord:base "/bin/sh -c 'bash $M 9 minutes ago Up 9 minutes 0.0.0.0:3000->80/tcp exomatch f39a9105b72f mongo:latest "/entrypoint.sh mong 39 hours ago Up 39 hours 127.0.0.1:27017->27017/tcp mongodb

I don´t get it... when i visit the website under the port 443 i don´t get an answer from the server either. The rest of mupx is configured correctly (deployment works!), also i ran mupx setup and mupx deploy.

The directory structure of the application is the following:

/// ROOT

The Application is running on Amazon EC2 without a Loadbalancer.

MasterJames commented 9 years ago

I found this quote somewhere, sounds like a starting point to check...I n your EC2 control panel, look at your instance and note the Security Group that is assigned to it. Then, navigate to the Security Groups section in the control panel, open your group, and make sure that port 443 is allowed over TCP.

This must be open to allow SSL traffic to your instance. A simple way to check if the port is open to the outside is to telnet into your server's IP on port 443, and see if you can connect and get a response.

mario589736 commented 9 years ago

YIHAAAA!!! i am on it since 4 days without any idea what it could be.... Thank your very much! I don´t know how many more days i would be on it without your help.

ashishgupta2 commented 9 years ago

Please close this, if the issue is resolved. Thanks.