Open ashishapy opened 8 years ago
You'll most likely need to change your nginx settings once deployed or possible change what gets deployed but I think more manually. The settings seems well explained here. http://stackoverflow.com/questions/7947030/nginx-no-www-to-www-and-www-to-no-www
I've gone over how one might dig around in mupx and try to manually add changes here that might also be helpful in resolving your plight. https://github.com/arunoda/meteor-up/issues/661
Thanks @MasterJames . I tried many thing (including suggestion by you) but somehow not able to get it working :( 4 days & still counting.
Ya I guess it's not a feature yet. It seems like maybe it would take longer then you can to figure it out. After another deeper look it would probably be this file you need to change. https://github.com/meteorhacks/mup-frontend-server/blob/master/lib/nginx.conf
Alternatively you could find another way. Www is not so important, is it?
Yeah, we decide not to give more importance to www now :)
You can just add force-ssl and canonical packages:
https://atmospherejs.com/wizonesolutions/canonical
https://atmospherejs.com/meteor/force-ssl
this will always force your domain access to https://www.*
how can I redirect client https://example.com to https://www.example.com (also ROOT_URL) in meteor?
I tried with Route 53 & S3 for redirecting but these worked when https is not enabled.
I used mupx to deploy the app on digital ocean. Is there anyway I achieve the same thing on nginx (I guess it is used by mupx).