On Jan 24, 2:31 pm, Jeff Schmitz <[email protected]> wrote:
> heroku domains:add DOMAIN

As I dig in, it will become clear that I'm VERY new to all this:

- do I need to do anything special with DNS (ala the Zerigo add-in)?
- do I need to do anything special with MX records?

The effect I'm going for is that unlogged-in users can see some pages
under the http://mysite.com domain, but once logged in, I want secured
interactions via https://secure.mysite.com.  Does this mean I should
do something like:

class ApplicationController
  before_filter :ensure_domain

  APP_DOMAIN = 'secure.mysite.com'

  def ensure_domain
    if current_user && request.env['HTTP_HOST'] != APP_DOMAIN
      redirect_to "http://#{APP_DOMAIN}";, :status => 301
    end
  end
end

?

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to