You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Daniel Gruno <hu...@apache.org> on 2017/03/15 14:23:30 UTC

server-status script donated to ASF

FWIW, the stuff that powers https://httpd.apache.org/server-status has
now been donated to the HTTPd project.

With regards,
Daniel.

Re: server-status script donated to ASF

Posted by Tom Browder <to...@gmail.com>.
On Sat, Mar 25, 2017 at 8:07 PM, Tom Browder <to...@gmail.com> wrote:
> On Sat, Mar 25, 2017 at 18:12 Eric Covener <co...@gmail.com> wrote:
>> On Sat, Mar 25, 2017 at 6:18 PM, Tom Browder <to...@gmail.com>
>> wrote:
>> >       LuaMapHandler ^/server-status$ /server-status.lua
>>
>> I think the second parm here is a filesystem path and not a URL-path.

Success!

Thanks so much, Eric.

Best regards,

-Tom

Re: server-status script donated to ASF

Posted by Tom Browder <to...@gmail.com>.
On Sat, Mar 25, 2017 at 18:12 Eric Covener <co...@gmail.com> wrote:

> On Sat, Mar 25, 2017 at 6:18 PM, Tom Browder <to...@gmail.com>
> wrote:
> >       LuaMapHandler ^/server-status$ /server-status.lua
>
> I think the second parm here is a filesystem path and not a URL-path.


Okay, I'll try that.

Thanks.

-Tom

Re: server-status script donated to ASF

Posted by Eric Covener <co...@gmail.com>.
On Sat, Mar 25, 2017 at 6:18 PM, Tom Browder <to...@gmail.com> wrote:
>       LuaMapHandler ^/server-status$ /server-status.lua

I think the second parm here is a filesystem path and not a URL-path.

Re: server-status script donated to ASF

Posted by Tom Browder <to...@gmail.com>.
On Sat, Mar 25, 2017 at 17:18 Tom Browder <to...@gmail.com> wrote:
...

> When I compiled apache2 I used the following config entry
> for mod_lua:
>
>   --with-lua=/usr


The reasons I did that were:

+ No clear description in the docs about what path is needed.

+ I repetitively changed the path based on what the config error told me
until I got a clean build and a mod_lua.so.  The messages I was getting
were that the system could not find file lua.h.

Does it need the complete path to the lua interpreter? Or its directory? Or
the lua library? Or some kind of pkg-config incantation?

-Tom

Re: server-status script donated to ASF

Posted by Tom Browder <to...@gmail.com>.
On Mon, Mar 20, 2017 at 07:57 Daniel Gruno <hu...@apache.org> wrote:
>
> On 03/20/2017 01:56 PM, Jim Jagielski wrote:
> > Cool... URL?
>
> https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/server-status/

I'm trying to incorporate that script into one of my virtual servers
but am getting an error.

I'm using apache 2.4.25 and compiled it on Debian 8, 64-bit, Linux,
with lua installed using the following Debian packages:

  i A liblua5.2-0                     - Shared library for the Lua
interpreter ver
  i   liblua5.2-dev                   - Development files for the Lua
language ver
  i   lua5.2                          - Simple, extensible, embeddable
programming

When I compiled apache2 I used the following config entry
for mod_lua:

  --with-lua=/usr

In my httpd.conf file in one of my virtual host directives I entered
the following line:

      LuaMapHandler ^/server-status$ /server-status.lua

When I attempt to access server-status at
<https://usafa-1965.org/server-status> I get the following error in my
browser:

<quote>
Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator at [no address given] to
inform them of the time this error occurred, and the actions you
performed just before this error.

More information about this error may be available in the server error log.
</quote>

The error log shows:

<quote>
[Sat Mar 25 16:49:56.654507 2017] [lua:error] [pid 17864:tid
139883896727296] AH01482: Error loading /server-status.lua: cannot
open /server-status.lua: No such file or directory
[Sat Mar 25 16:49:56.654518 2017] [lua:crit] [pid 17864:tid
139883896727296] [client 76.3.2.56:54332] AH02330: lua: Failed to
obtain Lua interpreter for entry function 'handle' in
/server-status.lua
</quote>

I also tried this line in the httpd.conf:

and got essentially the same results. From the error log:

<quote>
[Sat Mar 25 17:05:15.460393 2017] [lua:error] [pid 10792:tid
139883913512704] AH01482: Error loading
/https:/usafa-1965.org/server-status.lua: cannot open
/https:/usafa-1965.org/server-status.lua: No such file or directory
[Sat Mar 25 17:05:15.460406 2017] [lua:crit] [pid 10792:tid
139883913512704] [client 76.3.2.56:54364] AH02330: lua: Failed to
obtain Lua interpreter for entry function 'handle' in
https://usafa-1965.org/server-status.lua
</quote>

In both cases the file actually exists.

I suspect the problem is in the config file, but that's just a guess.

Any ideas?

Thanks.

Best regards,

-Tom

Re: server-status script donated to ASF

Posted by Marion & Christophe JAILLET <ch...@wanadoo.fr>.
Hi,

when running, the page get longer 5 seconds or so.

In the JS code, there is:

         // resize pane
         document.getElementById('leftpane').style.height = 
document.getElementById('wrapper').getBoundingClientRect().height + "px";

I guess that is "growing page" is coming from there.

What it is used for?

CJ

Le 20/03/2017  14:01, Daniel Gruno a crit :
> On 03/20/2017 02:01 PM, Jim Jagielski wrote:
>> Since these are docs, does that mean they can be
>> CTR'ed into 2.4? :)
> probably? :) it's just an example script, nothing that needs compiling
> or counts as de facto replacement yet :)
>
>>> On Mar 20, 2017, at 8:57 AM, Daniel Gruno <hu...@apache.org> wrote:
>>>
>>> On 03/20/2017 01:56 PM, Jim Jagielski wrote:
>>>> Cool... URL?
>>> https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/server-status/
>>>
>>>>> On Mar 15, 2017, at 10:23 AM, Daniel Gruno <hu...@apache.org> wrote:
>>>>>
>>>>> FWIW, the stuff that powers https://httpd.apache.org/server-status has
>>>>> now been donated to the HTTPd project.
>>>>>
>>>>> With regards,
>>>>> Daniel.
>


Re: server-status script donated to ASF

Posted by Daniel Gruno <hu...@apache.org>.
On 03/20/2017 02:01 PM, Jim Jagielski wrote:
> Since these are docs, does that mean they can be
> CTR'ed into 2.4? :)

probably? :) it's just an example script, nothing that needs compiling
or counts as de facto replacement yet :)

> 
>> On Mar 20, 2017, at 8:57 AM, Daniel Gruno <hu...@apache.org> wrote:
>>
>> On 03/20/2017 01:56 PM, Jim Jagielski wrote:
>>> Cool... URL?
>>
>> https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/server-status/
>>
>>>
>>>> On Mar 15, 2017, at 10:23 AM, Daniel Gruno <hu...@apache.org> wrote:
>>>>
>>>> FWIW, the stuff that powers https://httpd.apache.org/server-status has
>>>> now been donated to the HTTPd project.
>>>>
>>>> With regards,
>>>> Daniel.
>>>
>>
> 


Re: server-status script donated to ASF

Posted by Jim Jagielski <ji...@jaguNET.com>.
Since these are docs, does that mean they can be
CTR'ed into 2.4? :)

> On Mar 20, 2017, at 8:57 AM, Daniel Gruno <hu...@apache.org> wrote:
> 
> On 03/20/2017 01:56 PM, Jim Jagielski wrote:
>> Cool... URL?
> 
> https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/server-status/
> 
>> 
>>> On Mar 15, 2017, at 10:23 AM, Daniel Gruno <hu...@apache.org> wrote:
>>> 
>>> FWIW, the stuff that powers https://httpd.apache.org/server-status has
>>> now been donated to the HTTPd project.
>>> 
>>> With regards,
>>> Daniel.
>> 
> 


Re: server-status script donated to ASF

Posted by Daniel Gruno <hu...@apache.org>.
On 03/20/2017 01:56 PM, Jim Jagielski wrote:
> Cool... URL?

https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/server-status/

> 
>> On Mar 15, 2017, at 10:23 AM, Daniel Gruno <hu...@apache.org> wrote:
>>
>> FWIW, the stuff that powers https://httpd.apache.org/server-status has
>> now been donated to the HTTPd project.
>>
>> With regards,
>> Daniel.
> 


Re: server-status script donated to ASF

Posted by Jim Jagielski <ji...@jaguNET.com>.
Cool... URL?

> On Mar 15, 2017, at 10:23 AM, Daniel Gruno <hu...@apache.org> wrote:
> 
> FWIW, the stuff that powers https://httpd.apache.org/server-status has
> now been donated to the HTTPd project.
> 
> With regards,
> Daniel.


Re: server-status script donated to ASF

Posted by Stefan Eissing <st...@greenbytes.de>.
Very cool! Thanks to all involved!

> Am 15.03.2017 um 15:23 schrieb Daniel Gruno <hu...@apache.org>:
> 
> FWIW, the stuff that powers https://httpd.apache.org/server-status has
> now been donated to the HTTPd project.
> 
> With regards,
> Daniel.

Stefan Eissing

<green/>bytes GmbH
Hafenstrasse 16
48155 Münster
www.greenbytes.de