Skip to content

Instantly share code, notes, and snippets.

@zdavatz
Created January 25, 2012 08:05
Show Gist options
  • Save zdavatz/1675301 to your computer and use it in GitHub Desktop.
Save zdavatz/1675301 to your computer and use it in GitHub Desktop.
working /etc/apache2/vhosts.d/01_oddb_vhost.conf for mod_ruby 1.3.0 (ruby 1.8)
<Directory /var/www/oddb.org/doc>
Options ExecCGI FollowSymlinks Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/oddb.org/data/css>
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot /var/www/oddb.org/doc
ServerName oddb.user.org
DirectoryIndex index.rbx
#DirectoryIndex index.html
RubyAddPath /var/www/oddb.org/src
RubyAddPath /home/user/.local/rubygems/lib
RubyAddPath /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.0.3/lib
RubyRequire 'sbsm/trans_handler'
SetHandler ruby-object
RubyTransHandler SBSM::FlavoredTransHandler.instance
SetEnv DEFAULT_FLAVOR gcc
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment