简体   繁体   English

CloudFlare和Rails的博客反向代理

[英]Reverse proxy for blog with CloudFlare and Rails

I have a Rails website (example.com) and a Wordpress blog (blog.example.com), I also use CloudFlare. 我有一个Rails网站(example.com)和一个Wordpress博客(blog.example.com),我也使用CloudFlare。 Is there a way to setup Wordpress blog to be at example.com/blog instead of blog.example.com? 有没有一种方法可以将Wordpress博客设置为example.com/blog而不是blog.example.com? I saw Make an existing WordPress blog a subdirectory of a Rails App? 我看到了将现有的WordPress博客设为Rails应用程序的子目录吗? and I can go down that route, but I would expect it to be possible to set this up in CloudFlare. 我可以走那条路线,但我希望可以在CloudFlare中进行设置。

If you'd like to avoid hassling with Wordpress in your Rails app, you can check out ButterCMS. 如果您想避免在Rails应用程序中困扰于Wordpress,可以查看ButterCMS。 They had a Rails gem that integrates nicely into your existing Rails app. 他们有一个Rails gem,可以很好地集成到您现有的Rails应用程序中。 No reverse proxy mess needed and your blog will live at example.com/blog. 无需反向代理混乱,您的博客将位于example.com/blog。

https://buttercms.com/docs/blog/#rails https://buttercms.com/docs/blog/#rails

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM