我試圖配置Apache V2以使用VirtualHost指令同時處理兩個Rails(3.2.2)應用程序。我在本地筆記本電腦上做這個。 (Ubuntu,Ruby 1.9.2和Passenger 3.0.12。)如何使用共享Passenger Gem在Apache2上啓動多個Rails應用程序?
使用「Agile Web Development .... Rails」,V4中的部署說明。第一個簡單的應用程序啓動無w/o問題。
然後,我創建了第二個具有非常相似特徵的簡單應用程序。用第二個VirtualHost指令編輯/etc/apache2/apache2.conf,編輯/ etc/hosts將第二個指定的URL映射到相同的127.0.0.1地址。
重啓動Apache炸燬如下所示:
apache2的:上/etc/apache2/apache2.conf中的240行語法錯誤:無法加載/home/bubby/.rvm/gems/ruby-1.9.2 -p180/gems/passenger-3.0.12/ext/apache2/mod_passenger.so到服務器中:/home/bubby/.rvm/gems/ruby-1.9.2-p180/gems/passenger 3.0.12/ext/apache2/mod_passenger.so:無法打開共享目標文件:沒有此類文件或目錄
這兩個應用程序都與Passenger捆綁在一起。 「找到mod_passenger.so」返回正確的位置。有一個更好的方法嗎?
那麼apache2.conf的相關內容是什麼樣的? –