开发者

Running old site on apache + php and new nginx rails side by side

My current site is running on a dedicated server on apache + php. I am creating my new site in rails and running on nginx.

I want to run both sites together for a while while i slowly redirect all pages SEO rank etc to new site.开发者_如何学运维

My current site has say domain www.mydomain.com and new site will have www.mydomain.com/en infront of everything as will be mulilingual.

My current site is on server A and new site on server B, different locations and i want to figure out the best way to run together.

Can i tell apache on server A to whenever see url www.mydomain.com/en point to server B and nginx on server B with run new rails site? I am not trying to share sessions so that simplifies things i hope!!!

I can then just turn off server A when ready and just have new site running.

If i cant do this i will have to move all my existing site over to server B and run both sites on same server but think that might take ages and dont want to mess with current site much as to lose traffic / seo ranking etc

Any help, experience or opinions would be gratefully received!

thanks alot rick


You could run nginx on a different port (e.g. 8080) and then use Apache's mod_proxy to send requests to nginx.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜