2013-09-26 42 views
0

我有一個Rails應用程序,它在Windows機器上的"thin"服務器上運行。我聽說最好的Server for Rails是Phusion Passenger,但不幸的是我的服務器運行在Windows機器上,並且不能在Windows中安裝Phusion Passenger。Rails 3:在Windows機器上的Apache Server中部署Rails 3應用程序?

是否可以在Apache服務器中部署我的Rails應用程序。如果可能的話,它會影響我的Rails應用程序的性能。

任何幫助表示讚賞。

回答

1

您可以使用apache將對代理服務器的請求反向。 Apache的配置指令看起來有點像這樣(你可能需要更改這些)

DocumentRoot /path/to/rails/public 

<Location /assets > 
    ProxyPass ! 
</Location> 

ProxyRequests Off 

ProxyPass/http://localhost:3000/ 
ProxyPassReverse/http://localhost:3000/ 

替換3000設置薄上運行的端口。