On Mon, Mar 20, 2017 at 07:57 Daniel Gruno <[email protected]> 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