我有一个子文件夹(domain.com/folder),我想为folder.domain.com创建一个别名(CNAME)。但是,我似乎无法找到相关文档。
任何提示或建议?
谢谢, 尼克。
修改
constraints :subdomain => "connect" do
scope :module => "connect" do
# all the stuff i want to be in the subdomain
end
end
uninitialized constant Connect
使用http://connect.lvh.me:3000/apps
和No route matches [GET] "/apps"
获取http://connect.localhost:3000/apps
这里发生了什么?