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
Create an account Log in

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

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

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

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2024 GoRails, LLC. All rights reserved.