subdomain_fu configuration

环境: rails2.3.4
1.session 共享问题
development.rb
ActionController::Base.session_options[:domain]=".example.com"


2.其他设置
environment.rb
SubdomainFu.tld_size = 1 # sets for current environment
SubdomainFu.mirrors = ["www"]  
SubdomainFu.preferred_mirror = "www"
SubdomainFu.override_only_path = true
SubdomainFu.tld_sizes = {:development => 1,
                            :test => 0,
                            :production => 1} # set all at once (also the defaults)

你可能感兴趣的:(Ruby)