View previous topic :: View next topic |
Author |
Message |
chovy Guru
Joined: 03 Dec 2004 Posts: 453
|
Posted: Sat Jan 24, 2009 2:32 am Post subject: installing mod_ruby with apache2 (just get plain old text) |
|
|
I ran "$ emerge mod_ruby"
What else do I have to do? I created /test/ruby/hello.rb but I just get the source, not rendering. _________________ Woof, Woof! Add "[solved]" to the title! Woof, Woof! |
|
Back to top |
|
|
Stolz Moderator
Joined: 19 Oct 2003 Posts: 3028 Location: Hong Kong
|
Posted: Thu Feb 12, 2009 7:25 pm Post subject: |
|
|
I have no idea about Ruby but usually, when you install a mod_* interpreter in Apache you have to configure it to use the new interpreter in your (virtual)host config file. I.E, for mod_python
Code: | <Location />
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/www/trac.foobar.com/projects
PythonOption TracUriRoot /
</Location> |
Also, you probably need to enable Rubby in the APACHE2_OPTS option in /etc/conf.d/apache2
Check Ruby documentation to know how to configure your server. |
|
Back to top |
|
|
|