Skip to content

Instantly share code, notes, and snippets.

@zdavatz
Created February 10, 2011 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zdavatz/820138 to your computer and use it in GitHub Desktop.
Save zdavatz/820138 to your computer and use it in GitHub Desktop.
mod_ruby.so vhosts.conf Windows Apache 2.2.17
NameVirtualHost *:80
<VirtualHost *:80>
ServerName de.oddb.win
DocumentRoot C:\Ruby-1.8.6-oniguruma\lib\ruby\gems\1.8\gems\de.oddb-2.0.0\doc
DirectoryIndex index.rbx
RubyAddPath 'C:/Ruby-1.8.6-oniguruma/lib/ruby/gems/1.8/gems/de.oddb-2.0.0/lib'
RubyRequire 'sbsm/trans_handler'
RubyTransHandler SBSM::ZoneTransHandler.instance
<Directory C:\Ruby-1.8.6-oniguruma\lib\ruby\gems\1.8\gems\de.oddb-2.0.0\doc>
AllowOverride None
Order allow,deny
Allow from all
<Files "index.rbx">
RubyHandler Apache::RubyRun.instance
SetHandler ruby-object
</Files>
</Directory>
<Directory 'C:/Ruby-1.8.6-oniguruma/lib/ruby/gems/1.8/gems/de.oddb-2.0.0/var/images'>
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory 'C:/Ruby-1.8.6-oniguruma/lib/ruby/gems/1.8/gems/de.oddb-2.0.0/var/captcha'>
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "C:/Ruby-1.8.6-oniguruma/lib/ruby/gems/1.8/gems/de.oddb-2.0.0/var/rss">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
SetEnv DEFAULT_FLAVOR oddb
SetEnv DRB_SERVER druby://localhost:11000
Alias /rss C:\Ruby-1.8.6-oniguruma\lib\ruby\gems\1.8\gems\de.oddb-2.0.0\var\rss
Alias /images C:\Ruby-1.8.6-oniguruma\lib\ruby\gems\1.8\gems\de.oddb-2.0.0\var\images
Alias /captcha C:\Ruby-1.8.6-oniguruma\lib\ruby\gems\1.8\gems\de.oddb-2.0.0\var\captcha
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment