admin管理员组文章数量:1356413
I host a rails app on a Digital Ocean droplet. The app lives under app.mysite
I wanted to set up a staging server, so I set up a new droplet using a snapshot of the original. I've set up a record for the new subdomain and updated the NGINX config to point to staging.mysite and all seemed ok.
However, I get a Blocked host: error when I access the staging site. So I check the environment being used. It was using Development by default. So I update the development.rb environment file to include the following:
config.hosts << "staging.mysite"
I still get the error. I've tried restart rails, the server everything but no joy. This is my 3rd evening trying to get this setup and I'm out of ideas. I've been using ChatGPT to help me troubleshoot but nothing has changed the outcome.
If anyone has any suggestions for things I should try I would be forever grateful. This is driving me crazy.
本文标签: nginxHow do I fix the Blocked Host error in a rails 7 appStack Overflow
版权声明:本文标题:nginx - How do I fix the Blocked Host error in a rails 7 app? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744065425a2584902.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论