Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6945133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:23:49+00:00 2026-05-27T13:23:49+00:00

Ok here is what I have already tried, on the nginx #location ~ \.lua$

  • 0

Ok here is what I have already tried, on the nginx

#location ~ \.lua$ {
#    include uwsgi_params;
#    uwsgi_modifier1 6;
#    uwsgi_pass unix:/var/run/uwsgi/luajit/socket;
#}


#location ~ / {
#                include uwsgi_params;
#                uwsgi_param UWSGI_FILE $request_filename;
#                uwsgi_param UWSGI_TOUCH_RELOAD $request_filename;
#                uwsgi_param SCRIPT_NAME $uri;
#                uwsgi_modifier1 9;
#                if (-f $request_filename) {
#                 uwsgi_pass unix:/var/run/uwsgi/luajit/socket;
#
#                }
#        }
#location ~ \.cgi$ {
#    include fastcgi_params;
#    fastcgi_pass unix:/var/run/uwsgi/luajit/socket;
#    uwsgi_modifier1 9;
#
#}

#location ~ / {
#                include uwsgi_params;
#                uwsgi_param UWSGI_FILE test.cgi;
#                uwsgi_param SCRIPT_NAME test.cgi;
#                uwsgi_modifier1 9;
#3uwsgi_pass unix:/var/run/uwsgi/luajit/socket;
#        }

here is my uwsgi, config

default.xml

<uwsgi>
    <autoload>true</autoload>
    <master>true</master>
    <threads>25</threads>
    <workers>2</workers>
    <no-orphans>true</no-orphans>
    <pidfile>/var/run/uwsgi/%n/pid</pidfile>
    <socket>/var/run/uwsgi/%n/socket</socket>
    <chmod-socket>660</chmod-socket>
    <log-date>true</log-date>
    <uid>www-data</uid>
    <gid>www-data</gid>
</uwsgi>

luajit.xml

<uwsgi>
    <plugins>luajit</plugins>
    <protocol>uwsgi</protocol>
</uwsgi>

I have tried doing this so many way, I have even lost count. I couldn’t even get anything doing regular cgi. I prefer to do it like this,

test.lua > wsapi > luajit plugin uwsgi server > uwsgi protocol > nginx

But really at this point, i would like uwsgi work at all. I am running this on Ubuntu, so it is the debianized modular version of uwsgi.

can i run legacy cgi style scripts like this? what is wsapi.cgi? does it wrap lua cgi as wsapi, or lua wsapi as cgi.

I’m so lost, been at this for almost a week.

Would really appreciate any help. Even just to push me in the correct direction.
I was unable to find any documentation, or write-ups. which is why I’m posting.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:23:49+00:00Added an answer on May 27, 2026 at 1:23 pm

    This is the official doc: http://projects.unbit.it/uwsgi/wiki/Lua

    You should build latest versions (better going with 1.0 branch) as debian packages does not containes latest lua patches.

    Regarding cgi, nginx does not support it, and the plugin in uWSGI is still incomplete.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have already posted something similar here but I would like to ask the
The basics have already been answered here . But is there a pre-built PHP
I googled,I binged,I already have seen the other duplicates here,but none of them work
There have been many debates about this topic already here, but none of them
I am in need for a good errorbar function. I have already tried the
I'm currently pulling my hair out solving this bug :/ I have already tried
Just wondering what little scripts/programs people here have written that helps one with his
Since upgrading to 2008 I and many people here have noticed that randomly VS
Here I have: Public Structure MyStruct Public Name as String Public Content as String
Here I have a password field: /*********************PASSWORD**********************/ $password = new Zend_Form_Element_Password('password'); $alnumValidator = new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.