【问题标题】:vhosts configuration not working on couchDbvhosts 配置在 couchDb 上不起作用
【发布时间】:2012-12-14 07:01:57
【问题描述】:

我正面临一个奇怪的问题。我在 Iris 沙发上托管了一个 couchApp。我从 godaddy 购买了一个域名,并将我的 CNAME (WWW) 设置为我在 iris 沙发上的数据库地址。当我在浏览器中输入我的域名时,我会收到一条沙发数据库消息

{"couchdb":"Welcome","version":"1.2.0"} 

现在当我尝试将我的域名 (www.example.com) 映射到虚拟主机时

/dbname/_design/dname/_rewrite

它不起作用。

我的rewrites.json定义如下

[
{
   "from": "/home",
   "to": "_list/listRecentPostsHome/recentPosts",
   "method": "GET",
   "query": {
       "reduce": "false",
       "descending": "true",
       "limit": "10"
   }
}
] 

当我将浏览器指向这样的地址时

http://www.example.com/dbname/_design/dname/_rewrite/home

它有效。

不过这个

 http://www.example.com/home

没有。我希望上面的网址可以工作?我做错了什么?

我猜是虚拟主机配置有问题。

【问题讨论】:

    标签: couchdb vhosts couchapp couchdb-futon


    【解决方案1】:

    好吧,这有点令人困惑。在这里与鸢尾花沙发上的人交谈后

    https://getsatisfaction.com/iriscouch/topics/vhosts_configuration_not_working_on_couchdb

    我发现我在虚拟主机配置中输入了错误的域名。不需要“http://”。将其更改为“www.mydomain”后.com” 成功了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-24
      • 2012-04-27
      • 2013-11-27
      • 1970-01-01
      • 2022-10-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多