Article View: pl.comp.lang.ruby
Article #887Re: Jak pogodzić apache2, php i ruby
From: Marcin
Date: Sun, 06 Jan 2008 20:40
Date: Sun, 06 Jan 2008 20:40
39 lines
1910 bytes
1910 bytes
Piszę to, bo może się komuś przyda.
W Ubuntu 7.10 musiałem jeszcze w /etc/apache2/mod-available/ stworzyć
plik ruby.conf z zawartością
AddType text/html .rhtml
<IfModule mod_ruby.c>
RubyRequire apache/ruby-run
#RubyRequire apache/ruby-debug
RubyRequire apache/eruby-run
#RubyRequire apache/eruby-debug
# Execute *.rbx files as Ruby scripts
<Files *.rbx>
Options ExecCGI
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
#RubyHandler Apache::RubyDebug.instance
</Files>
# Handle *.rhtml files as eRuby files
<Files *.rhtml>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
#RubyHandler Apache::ERubyDebug.instance
</Files>
</IfModule>
a w /etc/apach2/mod-enabled/ zrobić linka ruby.conf do
/etc/apache2/mod-available/ruby.conf
No i oczywiście zresrtować apache2 :)
--
pozdrawiam,
Marcin
Technical Details
Message-ID:
<flrecn$n9q$1@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailReferences:
<flrc99$d97$1@inews.gazeta.pl> <flre05$l8c$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: Marcin <marlej@gazeta.pl> Newsgroups: pl.comp.lang.ruby Subject: Re: Jak pogodzić apache2, php i ruby Date: Sun, 06 Jan 2008 21:40:53 +0100 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 39 Message-ID: <flrecn$n9q$1@inews.gazeta.pl> References: <flrc99$d97$1@inews.gazeta.pl> <flre05$l8c$1@inews.gazeta.pl> NNTP-Posting-Host: 99-45.echostar.pl Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1199652055 23866 213.156.99.45 (6 Jan 2008 20:40:55 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Sun, 6 Jan 2008 20:40:55 +0000 (UTC) X-User: marlej In-Reply-To: <flre05$l8c$1@inews.gazeta.pl> User-Agent: Thunderbird 2.0.0.6 (X11/20071022) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit