passenger apache 设定

阅读更多
sudo vim /etc/apache2/httpd.conf


LoadModule passenger_module /home/yang/.gem/ruby/1.8/gems/passenger-2.2.7/ext/apache2/mod_passenger.so
   PassengerRoot /home/yang/.gem/ruby/1.8/gems/passenger-2.2.7
   PassengerRuby /usr/local/bin/ruby

NameVirtualHost *:80


  ServerName yang.local
  DocumentRoot "/home/yang/NetBeansProjects/bgbag.cc/public"
  RailsEnv development
  RailsAllowModRewrite off
 
    Order allow,deny
    Allow from all
 


[/sode]

sudo /etc/init.d/apache2 restart

你可能感兴趣的:(Apache,Ruby,vim,EXT)