商店不存在的异常后台要显示host #343

Closed
saberma opened this Issue Dec 12, 2011 · 0 comments

Comments

Projects
None yet
1 participant
@saberma
Owner

saberma commented Dec 12, 2011

后台显示搜索引擎获取robots.txt也会进入no_shop,无法得知访问了哪个host

Started GET "/sitemap/shopqi/sitemap_index.xml.gz" for 203.208.60.183 at 2011-12-12 18:07:27 +0800
  Processing by Shopqi::HomeController#no_shop as 
  Parameters: {"any"=>"sitemap/shopqi/sitemap_index.xml"}
Rendered shared/no_shop.html.haml (0.4ms)
Completed 404 Not Found in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms | Solr: 0.0ms)


Started GET "/robots.txt" for 207.46.194.137 at 2011-12-12 18:19:37 +0800
  Processing by Shopqi::HomeController#no_shop as TEXT
  Parameters: {"any"=>"robots"}
Rendered shared/no_shop.html.haml (0.4ms)
Completed 404 Not Found in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms | Solr: 0.0ms)

@ghost ghost assigned saberma Dec 12, 2011

@saberma saberma closed this in 2825690 Feb 2, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment