All threads / SSL issue with nginx

Ask A Question


You’re not receiving notifications from this thread.

SSL issue with nginx

Muneeb Ahmad Farooqi asked in Rails
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;


Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 51,723+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.