Skip to content

Instantly share code, notes, and snippets.

@champierre
Created November 10, 2010 14:17
Show Gist options
  • Save champierre/670898 to your computer and use it in GitHub Desktop.
Save champierre/670898 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName testapp # hosts ファイルに 127.0.0.1 testapp を設定しておく
DocumentRoot "/Users/user/rails/testapp/public"
ErrorLog /Users/user/rails/testapp/log/error.log
CustomLog /Users/user/rails/testapp/log/access.log common
SetEnv GEM_HOME /Users/user/.rvm/gems/ruby-1.8.7-p249 # <-- .rvm 以下の gems フォルダを指定する
SetEnv GEM_PATH /Users/user/.rvm/gems/ruby-1.8.7-p249:/Users/user/.rvm/gems/ruby-1.8.7-p249@global # <-- .rvm 以下の gems フォルダを指定する
RackEnv development # <-- RailsEnv ではない
<Directory "/Users/user/rails/testapp/public">
Order allow,deny
Allow from all
PassengerEnabled On
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment