# Help setting up RoR SSL on Bluehost

**URL:** <https://www.ruby-forum.com/t/help-setting-up-ror-ssl-on-bluehost/129625>\
**Category:** Rails\
**Created:** [February 20, 2008, 6:09am UTC](https://www.ruby-forum.com/t/help-setting-up-ror-ssl-on-bluehost/129625 "2008-02-20T06:09:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfgg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbce88/32.png) [@jfgg](https://www.ruby-forum.com/u/jfgg)\
**Post date:** [February 20, 2008, 6:09am UTC](https://www.ruby-forum.com/t/help-setting-up-ror-ssl-on-bluehost/129625/1 "2008-02-20T06:09:36Z")

</div>

I appreciate if anyone could help me to solve my problem. I already did  
this…

[http://wiki.rubyonrails.com/rails/pages/HowToEnableSSL](http://wiki.rubyonrails.com/rails/pages/HowToEnableSSL)

And this…  
[http://dev.rubyonrails.org/svn/rails/plugins/ssl\_requirement/README](http://dev.rubyonrails.org/svn/rails/plugins/ssl_requirement/README)

as a matter of fact the request is redirected to https … with this…

# force SSL for all actions in a controller or for the entire

application  
def ssl\_required?  
true  
end

But the aplication wonÂ´t appear. I mean it show what is on public\_html  
… Am I missing a link or something else?

I already try using this…

# Adds a filter that requires ssl.

# def self.require\_ssl(options={})

# before\_filter :require\_ssl

# end

#def require\_ssl

# env[‘HTTPS’] = ‘on’ unless (@request.ssl? or local\_request?)

#end

#def require\_ssl

# if !@request.ssl?

# redirect\_to :protocol =\> “https://”

# end

#end

#def require\_ssl

# if ENV[‘RAILS\_SSL’] == ‘on’

# request.env[‘HTTPS’] = ‘on’

# redirect\_to :protocol =\> “https://”

# raise SSLRequiredError if !request.ssl?

# end

#end

But non of these makes redirection…only def ssl\_required? makes  
redirection…

https is working… when I take out everything mentioning SSL … the  
application works fine over http.

Any ideas?
