https://github.com/smalljoker/luacgi
Lua with FastCGI support - ready to embed Lua code in websites!
https://github.com/smalljoker/luacgi
Last synced: about 2 months ago
JSON representation
Lua with FastCGI support - ready to embed Lua code in websites!
- Host: GitHub
- URL: https://github.com/smalljoker/luacgi
- Owner: SmallJoker
- License: lgpl-2.1
- Created: 2015-10-24T13:23:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-01T17:46:48.000Z (over 9 years ago)
- Last Synced: 2025-02-12T20:47:57.037Z (3 months ago)
- Language: Smalltalk
- Size: 652 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
Lua for FastCGI
=================Copyright (C) 2015 Krock/SmallJoker
This C# project provides you an (experimental) application to embed Lua in websites.
Successfully tested with Nginx 1.9.5 on Windows.Included Lua library file version: LuaJIT 5.1.4 (developement version)
License: LGPL 2.1 (see LICENSE.txt and/or tldrlegal.com)Setup
---------To get this stuff working with Nginx, apply following lines:
File: conf\nginx.conf
> server {
> ...
>
> location / {
> ...
> index index.php index.html index.htm;
> }
> location ~ .lua$ {
> fastcgi_pass 127.0.0.1:9000;
> fastcgi_index index.lua;
> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
> include fastcgi_params;
> }
> }File: conf\mime.types (optional .. ??)
> text/html html htm shtml php lua;File: \test.lua
>Testing LuaCGI
> Total Lua run time:
> Your useragent is