Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to configure both HTTP and HTTPS on thin. I have this configuration file:

environment: production
port: 9292
chdir: /home/[user]/[mySinatraAPP]
pid: tmp/ 
log: server.log 
max_conns: 1024 
timeout: 30 
max_persistent_conns: 512 
daemonize: true

I activate the ssl option with:

thin -C thin.yaml start --ssl

But it only activates HTTPS and not HTTP. Any idea of the path I can follow?

share|improve this question
up vote 1 down vote accepted

How about two thin processes? One without --ssl, and hence bound to port 80, and the other with --ssl and bound to port 443?

To be honest, I'd probably be more tempted to use Apache as a reverse proxy between the users and thin, and then have 2 virtualhost sections in your apache configuration.

share|improve this answer
Thanks. It work great. – rodchile Mar 16 '12 at 15:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.