Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

SSL issue with nginx

Rails • Asked by Muneeb Ahmad Farooqi
Hi everyone, i have followed this tutorial and got stuck
i enabled the option to redirect on https. and now when i'm trying to hit my website with https it seems server is nt responding. these are my nginx configuration. please check and help me to sort out the problem. Thanks 

server {
        listen 443 ssl;

        ssl_certificate /etc/letsencrypt/live/;
        ssl_certificate_key /etc/letsencrypt/live/;

        ssl_session_timeout 5m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
        ssl_session_cache shared:SSL:10m;
        passenger_enabled on;
        rails_env    production;
        root         /home/ubuntu/rails-projects/123crawler/master/123crawler-landingpage/public;

        # redirect server error pages to the static page /50x.html
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;



Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.