问题标签 [subdomain-fu]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
247 浏览

ruby-on-rails - 子域-fu gem tld_size

subdomain-fu gem 中的tld_size是什么意思。例如聋哑人,

在我的初始化程序/子域-fu.rb

0 投票
2 回答
201 浏览

ruby-on-rails - subdomain-fu 在 Rails 4 中不起作用

在我的 gem 文件中,我添加了 gem 'subdomain-fu', '1.0.0.beta2'。然后我做到了bundle install。我试图打印 <%= current_subdomain %> 但我得到了undefined local variable or methodcurrent_subdomain'` 。为什么我会收到此错误?

我也重新启动了我的 nginx 服务器和独角兽。

0 投票
0 回答
18 浏览

linux - 一个子域正在工作,但不同 IP 中的类似内容子域无法正常工作

两个子域中的内容相似。但是一个域正在工作,而另一个域没有工作。

Apache 主机文件。

商人.clouspos.lk (这是工作)

Mercer2.cloudpos.lk(这是重定向到不同的站点)

请提供此问题的解决方案?两个子域中的源代码相同。