2012-07-30 157 views
0

我有一個網絡服務器(Debian,Apache,MySQL)設置,我仍然使用默認配置,因爲它與安裝。 我也安裝了phpMyAdmin,它鏈接到了帶有別名的example.com/phpmyadmin。 現在我的問題:我想用Phusion Passenger(standalone)設置一個Rails應用程序,我想通過example.com/railsapp進行操作。因此,我需要告訴Apache將所有請求都代理到localhost:3000(這是Passenger提供rails應用程序的地方)。 我該怎麼做?Apache Proxy和別名合併

謝謝!

回答

1

在你的虛擬主機配置補充一點:

ProxyPassMatch /railsapp(.*) http://localhost:3000/$1 
ProxyPassReverse /railsapp http://localhost:3000