> Hi,
>
> Is it possible to use uWSGI without python module? I tried to run it
> in this way:
>
> $ ./uwsgi --http 0.0.0.0:8080 --check-static `pwd` --static-index
> index.html
>
> I've got only -- unavailable modifier requested: 0 --
>
> After appending --plugins python (but not cgi or psgi) all works fine
> - there are no error and static pages are displayed
>

Static-file serving is triggered by request plugins, so without one of
them you will not be able to serve static files.

If you plan to use at least one (cgi for example) simply add
--http-modifier1 <n> where n is the number of the modifier (9 for cgi).

If you want to use it only for file serving then you need a dummy plugin:


int dummy_request(struct wsgi_request *wsgi_req) {

    // this will trigger static files check
    if (uwsgi_parse_vars(wsgi_req)) {
        return -1;
    }
    return UWSGI_OK;
}

struct uwsgi_plugin dummy_plugin = {
    .name = "dummy",
    .modifier1 = 0,
    .request = dummy_request,
}


obviously use the plugin number you want (in the example i have used 0 so
it will automatically works)
-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to