You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Zeno Davatz <zd...@gmail.com> on 2011/02/10 09:48:09 UTC

[users@httpd] Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Hi

It seems that Apache for Windows interprets vhosts.conf files
differently then Apache for Linux does. I am asking this question
related to mod_ruby. Both Apaches (Linux and Windows) start fine with
mod_ruby.so loaded.

This vhosts.conf file on Linux Apache 2.2.14-r1 works just fine. Ruby
is executed:

https://gist.github.com/820139

this vhosts.conf file on Windows Apache 2.2.17

https://gist.github.com/820138

delivers the index.rbx file as plain text instead of executing it as
Ruby-Script. The vhosts.conf file was modified because of below issue.
It seems to me that this is connected to this issue here:
https://issues.apache.org/bugzilla/show_bug.cgi?id=25435

Is it normal, that a vhosts.conf on Linux can _not_ be assumed to work
on Windows as well? Or is this an issue with mod_ruby not yet working
correctly with Apache for Windows? Ruby is in my System path on
Windows.

Thank you for your Feedback.

Best
Zeno

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by Zeno Davatz <zd...@gmail.com>.
Dear Günter

Thanks for the reply.

On Thu, Feb 10, 2011 at 10:22 AM, Guenter Knauf <fu...@apache.org> wrote:

> Am 10.02.2011 09:48, schrieb Zeno Davatz:
>>
>> It seems that Apache for Windows interprets vhosts.conf files
>> differently then Apache for Linux does. I am asking this question
>> related to mod_ruby. Both Apaches (Linux and Windows) start fine with
>> mod_ruby.so loaded.
>>
>> This vhosts.conf file on Linux Apache 2.2.14-r1 works just fine. Ruby
>> is executed:
>>
>> https://gist.github.com/820139
>>
>> this vhosts.conf file on Windows Apache 2.2.17
>>
>> https://gist.github.com/820138
>>
>> delivers the index.rbx file as plain text instead of executing it as
>> Ruby-Script. The vhosts.conf file was modified because of below issue.
>> It seems to me that this is connected to this issue here:
>> https://issues.apache.org/bugzilla/show_bug.cgi?id=25435
>>
>> Is it normal, that a vhosts.conf on Linux can _not_ be assumed to work
>> on Windows as well? Or is this an issue with mod_ruby not yet working
>> correctly with Apache for Windows? Ruby is in my System path on
>> Windows.
>
> I have not (yet) looked at your links, but want to give you another hint
> which might (or not) reveal some differences between your Linux and Win32
> installation: load mod_info on both boxes, and try to compare the config
> directives; usually if you use a httpd from Linux distro the configuration
> is splitted into several config files, and also distros come along with
> their own modified mime.types and magic files ...
> this can all cause different behaviour ...

Ok, I am comparing the server-info files now but I have not yet found
more information that I had not already found in my config file. Our
assumption of one thing that does seem different between Linux and
Windows is that Windows seems to need a

AddHandler cgi-script .rbx

where our Gentoo-Linux does not need that in mod_ruby.conf.

https://gist.github.com/820255

But so far that did not help on Windows. Also my
C:\Apache2.2\conf\extra\mod_ruby.conf file has the following lines:

  <Files *.rbx>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
  </Files>

my C:\Apache2.2\conf\vhots\de.oddb.win.conf has those as well
(suggestion of Tom from yesterday, but Tom is not a Windows User). Now
if I comment those lines out, either in mod_ruby.conf or in my
de.oddb.win.conf I get the same result: index.rbx is just displayed as
a text file on Windows.

server-info on my Windows Vista shows me all my mod_ruby Module
Directives nicely so I guess that module is really loaded on windows
and does work.

Another reason that I am asking these "beginner" questions is that
AFAIK mod_ruby never really was tested with Apache for Windows as the
Author of mod_ruby (Shugo-san) does not have a Windows Machine.

Best
Zeno

Re: Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by Zeno Davatz <zd...@gmail.com>.
On Thu, Feb 10, 2011 at 3:46 PM, Eric Covener <co...@gmail.com> wrote:
>>>> Is there a specifically different way to handle Content Handlers on
>>>> Windows? I am now looking at this:
>>>
>>> No.
>>
>> So what you are trying to tell me is, that there must be a fault in
>> mod_ruby.so itself? Or is this a configuration issue on my Apache on
>> my Windows Box?
>
> It should be a simple test to see if the expected SetHandler string
> has any affect after eliminating all the other cruft.
>
> If it doesn't work, and mod_info doesn't even think it registered a
> handler, it's safe to say either the source or your binary are a dud
> on Windows.

Ok, another difference is that "mod_ruby.c" does not show up in my
Windows Box in Server-Info "Start-Up Hooks" and "Request Hooks"
sections.

Best
Zeno

Re: Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by Zeno Davatz <zd...@gmail.com>.
Dear Eric

On Thu, Feb 10, 2011 at 3:46 PM, Eric Covener <co...@gmail.com> wrote:
> On Thu, Feb 10, 2011 at 9:27 AM, Zeno Davatz <zd...@gmail.com> wrote:

>> On Thu, Feb 10, 2011 at 3:24 PM, Eric Covener <co...@gmail.com> wrote:
>>>> Is there a specifically different way to handle Content Handlers on
>>>> Windows? I am now looking at this:
>>>
>>> No.
>>
>> So what you are trying to tell me is, that there must be a fault in
>> mod_ruby.so itself? Or is this a configuration issue on my Apache on
>> my Windows Box?
>
> It should be a simple test to see if the expected SetHandler string
> has any affect after eliminating all the other cruft.

Ok, I will go and search for that simple test then. Let me know if you
have a suggestion. In the mean time I will ask user@ as well.

> If it doesn't work, and mod_info doesn't even think it registered a
> handler, it's safe to say either the source or your binary are a dud
> on Windows.

Ok, thanks for that Feedback.

Best
Zeno

Re: Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by Eric Covener <co...@gmail.com>.
On Thu, Feb 10, 2011 at 9:27 AM, Zeno Davatz <zd...@gmail.com> wrote:
> Dear Eric
>
> On Thu, Feb 10, 2011 at 3:24 PM, Eric Covener <co...@gmail.com> wrote:
>>> Is there a specifically different way to handle Content Handlers on
>>> Windows? I am now looking at this:
>>
>> No.
>
> So what you are trying to tell me is, that there must be a fault in
> mod_ruby.so itself? Or is this a configuration issue on my Apache on
> my Windows Box?

It should be a simple test to see if the expected SetHandler string
has any affect after eliminating all the other cruft.

If it doesn't work, and mod_info doesn't even think it registered a
handler, it's safe to say either the source or your binary are a dud
on Windows.

Re: Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by Zeno Davatz <zd...@gmail.com>.
Dear Eric

On Thu, Feb 10, 2011 at 3:24 PM, Eric Covener <co...@gmail.com> wrote:
>> Is there a specifically different way to handle Content Handlers on
>> Windows? I am now looking at this:
>
> No.

So what you are trying to tell me is, that there must be a fault in
mod_ruby.so itself? Or is this a configuration issue on my Apache on
my Windows Box?

Best
Zeno

Re: Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by Eric Covener <co...@gmail.com>.
> Is there a specifically different way to handle Content Handlers on
> Windows? I am now looking at this:

No.

Re: Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by Zeno Davatz <zd...@gmail.com>.
Dear Eric

Thank you for your reply.

On Thu, Feb 10, 2011 at 2:37 PM, Eric Covener <co...@gmail.com> wrote:
>> Now I do not yet understand if that has any meaning or not.
>
> It means your mod_ruby can't act as a handler, the piece  which
> actually generates the response for a request.  This is why it only
> seems to work when you configure your windows system to run ruby
> scripts as CGI -- but it's not actually using mod_ruby at that point.

So what you are trying to tell me is, that mod_ruby on my Windows Box
does not yet act as a handler?

Another important difference is that my Server-Info of mod_ruby.c of
my Linux Server tells me

Content handlers: yes

and my Server-Info of my Windows Box tells me

Content handlers: none

Is there a specifically different way to handle Content Handlers on
Windows? I am now looking at this:

http://oreilly.com/catalog/wrapmod/chapter/ch04.html

Thank you for any Feedback.

Best
Zeno

Re: Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by Eric Covener <co...@gmail.com>.
> Now I do not yet understand if that has any meaning or not.

It means your mod_ruby can't act as a handler, the piece  which
actually generates the response for a request.  This is why it only
seems to work when you configure your windows system to run ruby
scripts as CGI -- but it's not actually using mod_ruby at that point.

Re: Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by Zeno Davatz <zd...@gmail.com>.
Dear Günter

On Thu, Feb 10, 2011 at 10:22 AM, Guenter Knauf <fu...@apache.org> wrote:

> Am 10.02.2011 09:48, schrieb Zeno Davatz:
>>
>> It seems that Apache for Windows interprets vhosts.conf files
>> differently then Apache for Linux does. I am asking this question
>> related to mod_ruby. Both Apaches (Linux and Windows) start fine with
>> mod_ruby.so loaded.
>>
>> This vhosts.conf file on Linux Apache 2.2.14-r1 works just fine. Ruby
>> is executed:
>>
>> https://gist.github.com/820139
>>
>> this vhosts.conf file on Windows Apache 2.2.17
>>
>> https://gist.github.com/820138
>>
>> delivers the index.rbx file as plain text instead of executing it as
>> Ruby-Script. The vhosts.conf file was modified because of below issue.
>> It seems to me that this is connected to this issue here:
>> https://issues.apache.org/bugzilla/show_bug.cgi?id=25435
>>
>> Is it normal, that a vhosts.conf on Linux can _not_ be assumed to work
>> on Windows as well? Or is this an issue with mod_ruby not yet working
>> correctly with Apache for Windows? Ruby is in my System path on
>> Windows.
>
> I have not (yet) looked at your links, but want to give you another hint
> which might (or not) reveal some differences between your Linux and Win32
> installation: load mod_info on both boxes, and try to compare the config
> directives; usually if you use a httpd from Linux distro the configuration
> is splitted into several config files, and also distros come along with
> their own modified mime.types and magic files ...
> this can all cause different behaviour ...

This is the main difference between Windows an Linux that I can see by
the Server-Info for mod_ruby.c:

Windows:
Configuration Phase Participation: Create Directory Config, Merge
Directory Configs, Create Server Config, Merge Server Configs
Request Phase Participation: none

Linux (has more info in Request Phase Participation):
Configuration Phase Participation: Create Directory Config, Merge
Directory Configs, Create Server Config, Merge Server Configs
Request Phase Participation: Post-Read Request, Translate Name, Check
Access, Verify User ID, Verify User Access, Check Type, Fixups,
Content Handlers, Logging

Now I do not yet understand if that has any meaning or not.

Best
Zeno

Re: Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by Guenter Knauf <fu...@apache.org>.
Hi Zeno,
Am 10.02.2011 09:48, schrieb Zeno Davatz:
> It seems that Apache for Windows interprets vhosts.conf files
> differently then Apache for Linux does. I am asking this question
> related to mod_ruby. Both Apaches (Linux and Windows) start fine with
> mod_ruby.so loaded.
>
> This vhosts.conf file on Linux Apache 2.2.14-r1 works just fine. Ruby
> is executed:
>
> https://gist.github.com/820139
>
> this vhosts.conf file on Windows Apache 2.2.17
>
> https://gist.github.com/820138
>
> delivers the index.rbx file as plain text instead of executing it as
> Ruby-Script. The vhosts.conf file was modified because of below issue.
> It seems to me that this is connected to this issue here:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=25435
>
> Is it normal, that a vhosts.conf on Linux can _not_ be assumed to work
> on Windows as well? Or is this an issue with mod_ruby not yet working
> correctly with Apache for Windows? Ruby is in my System path on
> Windows.
I have not (yet) looked at your links, but want to give you another hint 
which might (or not) reveal some differences between your Linux and 
Win32 installation: load mod_info on both boxes, and try to compare the 
config directives; usually if you use a httpd from Linux distro the 
configuration is splitted into several config files, and also distros 
come along with their own modified mime.types and magic files ...
this can all cause different behaviour ...

Gün.



Re: [users@httpd] Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by Eric Covener <co...@gmail.com>.
> As far as I understand it is not only about the size but also about
> how easy it is to integrate.

And the license, pedigree, enough developers interested in maintaining
it, enough users...

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by Zeno Davatz <zd...@gmail.com>.
Dear Tom

On Fri, Feb 11, 2011 at 1:41 PM, Tom Evans <te...@googlemail.com> wrote:
> On Fri, Feb 11, 2011 at 7:17 AM, Zeno Davatz <zd...@gmail.com> wrote:
>> What has to happen that this becomes an ASF project? My goal is that
>> mod_ruby becomes a standard Apache library.
>>
>
> I am in no way affiliated to the ASF, but I would say that the chances
> are slim at the very least. Other notable language plugins, like
> mod_perl, mod_php etc, have an order of magnitude more users using the
> module, are vastly more mature, more stable and better supported than
> mod_ruby, and none of them have come close to inclusion in apache as
> standard.

Well maybe they did not try hard enough? Or maybe they just do not
care. Of course maybe I am wrong too. I just think it would be nice.
And I am willing to support mod_ruby as an ASF project. So my question
would be: How do you become an official ASF project? But maybe William
has some Feedback about that.

As far as I understand it is not only about the size but also about
how easy it is to integrate.

Best
Zeno

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by Tom Evans <te...@googlemail.com>.
On Fri, Feb 11, 2011 at 7:17 AM, Zeno Davatz <zd...@gmail.com> wrote:
> What has to happen that this becomes an ASF project? My goal is that
> mod_ruby becomes a standard Apache library.
>

I am in no way affiliated to the ASF, but I would say that the chances
are slim at the very least. Other notable language plugins, like
mod_perl, mod_php etc, have an order of magnitude more users using the
module, are vastly more mature, more stable and better supported than
mod_ruby, and none of them have come close to inclusion in apache as
standard.

Cheers

Tom

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by "William A. Rowe Jr." <wr...@rowe-clan.net>.
On 2/11/2011 1:17 AM, Zeno Davatz wrote:
> Dear William
> 
> On Thu, Feb 10, 2011 at 11:36 PM, William A. Rowe Jr.
> <wr...@rowe-clan.net> wrote:
>> On 2/10/2011 2:48 AM, Zeno Davatz wrote:
>>>
>>> It seems that Apache for Windows interprets vhosts.conf files
>>> differently then Apache for Linux does. I am asking this question
>>> related to mod_ruby. Both Apaches (Linux and Windows) start fine with
>>> mod_ruby.so loaded.
>>
>> httpd does not.  In fact the entire codebase of httpd is identical except
>> in respect to splitting off and dispatching to worker processes (that lies
>> in the MPM, winnt has its own), and handling owner/group sids (which only
>> unix really looks at relative to suexec features), and mod_win32's special
>> handling of cgi's.  The rest?  Identical.  The consistency comes from APR's
>> portability layer.
>>
>> I see you spent a bunch of time on the dev@ list today debugging mod_ruby,
>> please stop doing that.  users@ may be a good place to start your research,
>> but ultimately these questions have to go to the mod_ruby people to tell
>> you what is broken.  mod_ruby is not an ASF project.
> 
> What has to happen that this becomes an ASF project? My goal is that
> mod_ruby becomes a standard Apache library.

mod_ruby developers have to decide that is what they want.  It isn't for
their users or for the ASF to make or really even influence that decision.

The ASF is an organization of inclusiveness of the willing :)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by Zeno Davatz <zd...@gmail.com>.
Dear William

On Thu, Feb 10, 2011 at 11:36 PM, William A. Rowe Jr.
<wr...@rowe-clan.net> wrote:
> On 2/10/2011 2:48 AM, Zeno Davatz wrote:
>>
>> It seems that Apache for Windows interprets vhosts.conf files
>> differently then Apache for Linux does. I am asking this question
>> related to mod_ruby. Both Apaches (Linux and Windows) start fine with
>> mod_ruby.so loaded.
>
> httpd does not.  In fact the entire codebase of httpd is identical except
> in respect to splitting off and dispatching to worker processes (that lies
> in the MPM, winnt has its own), and handling owner/group sids (which only
> unix really looks at relative to suexec features), and mod_win32's special
> handling of cgi's.  The rest?  Identical.  The consistency comes from APR's
> portability layer.
>
> I see you spent a bunch of time on the dev@ list today debugging mod_ruby,
> please stop doing that.  users@ may be a good place to start your research,
> but ultimately these questions have to go to the mod_ruby people to tell
> you what is broken.  mod_ruby is not an ASF project.

What has to happen that this becomes an ASF project? My goal is that
mod_ruby becomes a standard Apache library.

> If you want to fix modules, we encourage developers/hackers to join the
> modules-dev@httpd.apache.org list, where all sorts of questions about what
> bubble gum and bailing wire to use in third party modules are encouraged.

Ok, I will head over there then. Thanks for the hint.

Best
Zeno

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Different vhosts.conf between Apache 2.2.17 for Windows and Apache for Linux 2.2.14-rc1 - issue 25435?

Posted by "William A. Rowe Jr." <wr...@rowe-clan.net>.
On 2/10/2011 2:48 AM, Zeno Davatz wrote:
> 
> It seems that Apache for Windows interprets vhosts.conf files
> differently then Apache for Linux does. I am asking this question
> related to mod_ruby. Both Apaches (Linux and Windows) start fine with
> mod_ruby.so loaded.

httpd does not.  In fact the entire codebase of httpd is identical except
in respect to splitting off and dispatching to worker processes (that lies
in the MPM, winnt has its own), and handling owner/group sids (which only
unix really looks at relative to suexec features), and mod_win32's special
handling of cgi's.  The rest?  Identical.  The consistency comes from APR's
portability layer.

I see you spent a bunch of time on the dev@ list today debugging mod_ruby,
please stop doing that.  users@ may be a good place to start your research,
but ultimately these questions have to go to the mod_ruby people to tell
you what is broken.  mod_ruby is not an ASF project.

If you want to fix modules, we encourage developers/hackers to join the
modules-dev@httpd.apache.org list, where all sorts of questions about what
bubble gum and bailing wire to use in third party modules are encouraged.

Yours,

Bill

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org