2010-08-11 83 views

回答

0

the official manual

要做到這一點,從您的Ruby on Rails應用程序的公用文件夾一個符號鏈接在文檔根目錄。例如:

ln -s /webapps/mycook/public /websites/phusion/rails

接下來,設置passenger_enabled上,並添加一個選項passenger_base_uri向服務器塊:

server { 
    listen 80; 
    server_name www.phusion.nl; 
    root /websites/phusion; 
    passenger_enabled on;  # <--- These lines have 
    passenger_base_uri /rails; # <--- been added. 
} 
相關問題