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

<VirtualHost *:80>
  ServerName yang.local
  DocumentRoot "/home/yang/NetBeansProjects/bgbag.cc/public"
  RailsEnv development
  RailsAllowModRewrite off
  <directory "/home/yang/NetBeansProjects/bgbag.cc/public">
    Order allow,deny
    Allow from all
  </directory>
</VirtualHost>
[/sode]

sudo /etc/init.d/apache2 restart

你可能感兴趣的:(apache,ext,vim,Ruby)