Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 44853 invoked from network); 9 Feb 2011 16:08:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2011 16:08:07 -0000 Received: (qmail 69591 invoked by uid 500); 9 Feb 2011 16:08:06 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 68904 invoked by uid 500); 9 Feb 2011 16:08:03 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 68886 invoked by uid 99); 9 Feb 2011 16:08:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 16:08:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of zdavatz@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 16:07:57 +0000 Received: by qwk4 with SMTP id 4so239886qwk.18 for ; Wed, 09 Feb 2011 08:07:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=gBllP3UC4JbYm3QMzqD31ccCYVxSgkkOftcWfp55wRI=; b=tIgJpJvqWUuFf9mPFntTI88PErox+IniM4QYQvmMOZ37/OgTk1uHM8E+I4aahg7yzB UJNOw1rjsVA7iV1SEaeGhLCryu3Q5bPeM0zxxA6kEmxY8KlAxuLctc2qgXh7eTfhj2UB ZB+5avbZrEDjJCwUpeeSioiESCFG71hRRbz3s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=kxKYOoBkbzf4N3sBRfJ1X3jUXqdTAMdrgXfusrH18c3KZqFGekyawAM2xXEx9nkqc2 JbAPckxv4LE0U1GhhWaOSaicLEMpwkIoZ6nY8T5vkTHEvTTl5dy7MWoOn5JRKjMIt3z6 YULsxES76Xiqn3N2Um4xl8qG2p9hVx0+ez6hQ= MIME-Version: 1.0 Received: by 10.229.86.149 with SMTP id s21mr15044657qcl.23.1297267655916; Wed, 09 Feb 2011 08:07:35 -0800 (PST) Received: by 10.229.226.3 with HTTP; Wed, 9 Feb 2011 08:07:35 -0800 (PST) In-Reply-To: References: Date: Wed, 9 Feb 2011 17:07:35 +0100 Message-ID: Subject: Re: SetHandler mod_ruby Apache 2.2.17 Windows From: Zeno Davatz To: dev@httpd.apache.org, users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Dear Tom On Wed, Feb 9, 2011 at 4:12 PM, Tom Evans wrote: > (why are we talking on dev@ btw, this seems clearly a users@ > discussion. If/when you reply, please drop dev@) It seems a dev issue because what works on Linux does not seem to work on Apache for Windows. That is why I sent this to dev@ as well. > OK, there are some inconsistencies in your conf. > > First, in your vhost configuration, you have SetHandler ruby-object at > the top level. This *will* set the handler for all requests to the > vhost to use handler ruby-object. All requests. Including for files, > directory indexes, and so on... > > Secondly, in the directory where I expect you probably do want to have > ruby-object as the handler, you tell apache to execute *.rbx as > cgi-script. I thought this whole exercise was to have them executed by > mod_ruby.. > > Finally, having found that bug report, you seem to be trying hard to > trigger it! In the bug report you linked to us, there is a good > work-around listed by wrowe@ - why not use that? This is my mod_ruby.conf settings on Linux and there it just works fine: LoadModule ruby_module modules/mod_ruby.so # taken from the example file # If the ruby module is installed, this will be enabled. # for Apache::RubyRun RubyRequire apache/ruby-run # exec files under /ruby as ruby scripts. SetHandler ruby-object RubyHandler Apache::RubyRun.instance Options ExecCGI # exec *.rbx as ruby scripts. SetHandler ruby-object RubyHandler Apache::RubyRun.instance So if you mean this "Options ExecCGI" then yes, to my understanding Ruby is executed as CGI on Apache, at least on Linux it is. Now Apache on Windows delivers me the same result (as so is the following) [error] [client 127.0.0.1] Attempt to serve directory: C:/Users/zdavatz/de.oddb.org/doc/ with these settings here: https://gist.github.com/818654 This option here https://gist.github.com/818519 I just tried to see if I get the same result or not. Best Zeno