Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8944499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:02:15+00:00 2026-06-15T12:02:15+00:00

I use Rails 3.0.x and I have a problem with thin output. When I

  • 0

I use Rails 3.0.x and I have a problem with thin output.

When I use:

rails server thin

Thin displays a list of handled requests, and logs them, almost exactly as webrick does. This is great, however I didn’t find any way to use Thin in ssl mode with this command.

To use Thin in ssl mode, as indicated here, I use the following command (plus arguments for ssl):

thin start --ssl ...

With this command, the log is still good but Thin does not output anything in standard output.

So I tried:

thin start --trace

But now Thin writes all request and all responses(!) in standard output, including javascript, images, etc.

With Thin in ssl mode, is there a way to output all handled requests, as webrick does?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:02:16+00:00Added an answer on June 15, 2026 at 12:02 pm

    When launching Thin with the command:

    rails server thin
    

    The possible options are propagated from Rack to thin in Rack::Server#start:

    server.run wrapped_app, options
    

    But in Rack::Handler::Thin#run, we can see that the handler doesn’t use those options:

     module Rack
      module Handler
        class Thin
          def self.run(app, options={})
            app = Rack::Chunked.new(Rack::ContentLength.new(app))
            server = ::Thin::Server.new(options[:Host] || '0.0.0.0',
                                        options[:Port] || 8080,
                                        app)
            yield server if block_given?
            server.start
          end
        end
      end
    end
    

    When using Thin in ssl mode via the command line:

    thin start --ssl
    

    Options are parsed in Thin::Runner#parser and then used in Controllers::Controller#start

    I would suggest to monkey patch Rack::Handler::Thin#run with a content similar to Controllers::Controller#start.

    The result would be something like this:

      module Rack
        module Handler
          class Thin
            def self.run(app, options={})
              app = Rack::Chunked.new(Rack::ContentLength.new(app))
              server = ::Thin::Server.new(options[:Host] || '0.0.0.0',
                                          options[:Port] || 8080,
                                          app)
              server.ssl = true
              server.ssl_options = { :private_key_file => PATH_TO_KEY_FILE, :cert_chain_file => PATH_TO_CERT_FILE }
              yield server if block_given?
              server.start
            end
          end
        end
      end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with setting up rails application. We use rails 3 (we
I have a non-rails application that I want to use rails active-record migrations with.
I have no rails environment but I want to use cruisecontrol.rb as my Continous
I want to use mysql with a rails app (I have never used mysql
I am learning to use mysql for rails apps, and I finally have been
So I'm finally starting to use rest in rails. I want to have a
In Rails 2.x you can use validations to make sure you have a unique
I have Ruby on Rails 3.1 application and i use for Sphinx + Thinking
Ever since I created this Rails 3.2.3 project to use MiniTest, I have been
I'm using rails_admin which use devise. Some words still displays in english. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.