简体   繁体   English

如何设置Wordpress网站和Rails多帐户网站

[英]How to setup wordpress site and rails multiaccount site

I have TLD (www.example.com) and want to deploy rails 3 app (ex. app.example.com) what will have multiple accounts, each account with one subdomiain (test.example.com, support.example.com, ...). 我有TLD(www.example.com),并且想部署Rails 3应用程序(例如app.example.com),它将有多个帐户,每个帐户有一个子域(test.example.com,support.example.com, ...)。

I created tld with subdomain, changed DNS records, and everything is working. 我使用子域创建了tld,更改了DNS记录,并且一切正常。 But, since there will be CNAME redirection from some other sites to specific subdomains and my default site is TLD (www.example.com) all CNAME redirects are going to main site instead of analogus subdomain! 但是,由于将CNAME从某些其他站点重定向到特定的子域,而我的默认站点是TLD(www.example.com),因此所有CNAME重定向都将转到主站点,而不是类比子域!

Is there better way to integrate Rails and Wordpress? 有没有更好的方法来集成Rails和Wordpress? How to solve that? 怎么解决呢? I'm searching for solution last two days. 我正在寻找最近两天的解决方案。

Similar question: https://stackoverflow.com/questions/10405859/how-to-config-apache-passenger-for-wordpress-and-rails 类似的问题: https : //stackoverflow.com/questions/10405859/how-to-config-apache-passenger-for-wordpress-and-rails

If your ruby is in passenger mode, and your apache servicing all http queries you should be able to use the apache virtual server setup to redirect the queries for your rails apps accordingly, while leaving your Wordpress on the default web server. 如果您的红宝石处于乘客模式,并且您的apache为所有http查询提供服务,则您应该能够使用apache虚拟服务器设置来相应地重定向Rails应用程序的查询,同时将Wordpress保留在默认的Web服务器上。

I haven't done it with rails, but for Diaspora, (which is a ruby app) I have that running side by side with a Wordpress network with numerous subdomains off the TLD. 我还没有使用Rails做到这一点,但是对于Diaspora(这是一个红宝石应用程序),我与Wordpress网络并驾齐驱,而该网络具有TLD之外的许多子域。 The key might be that your TLD should be example.com, not www.example.com. 关键可能是您的TLD应该是example.com,而不是www.example.com。 (setup whichever you prefer to have wordoress on to redirect to the other) (设置您更喜欢让女主持人重定向到另一个)

Post some more details on your apache (or other web server environment) setup to achieve some better assistance if this doesn't help. 在您的apache(或其他Web服务器环境)设置上发布一些更多详细信息,以获得帮助(如果这样做没有帮助)。

Yours for the cause of open source! 您的开源事业!

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

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