mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-11-21 10:56:10 +00:00
added welcome.ini
This commit is contained in:
@@ -855,7 +855,7 @@ char *uwsgi_pythonize(char *orig) {
|
||||
name[i] = '_';
|
||||
}
|
||||
else if (name[i] == '/') {
|
||||
name[i] = '.';
|
||||
name[i] = '_';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ void *uwsgi_request_subhandler_wsgi(struct wsgi_request *wsgi_req, struct uwsgi_
|
||||
Py_DECREF(pydictvalue);
|
||||
}
|
||||
|
||||
|
||||
if (wsgi_req->uh.modifier1 == UWSGI_MODIFIER_MANAGE_PATH_INFO) {
|
||||
wsgi_req->uh.modifier1 = 0;
|
||||
pydictkey = PyDict_GetItemString(wsgi_req->async_environ, "SCRIPT_NAME");
|
||||
|
||||
@@ -766,6 +766,7 @@ next:
|
||||
wsgi_req->var_cnt++;
|
||||
script_name = wsgi_req->var_cnt;
|
||||
}
|
||||
|
||||
for(i=0;i<uwsgi_apps_cnt;i++) {
|
||||
//uwsgi_log("app mountpoint = %.*s\n", uwsgi_apps[i].mountpoint_len, uwsgi_apps[i].mountpoint);
|
||||
if (orig_path_info_len >= uwsgi_apps[i].mountpoint_len) {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import uwsgi
|
||||
|
||||
print(uwsgi.opt)
|
||||
print(uwsgi.magic_table)
|
||||
from werkzeug.testapp import test_app as application
|
||||
@@ -0,0 +1,9 @@
|
||||
[uwsgi]
|
||||
socket = :3031
|
||||
socket = /tmp/uwsgi_welcome.socket
|
||||
vacuum = true
|
||||
module = welcome
|
||||
master = true
|
||||
processes = 4
|
||||
mount = /werkzeug=tests/werkzeug.py
|
||||
manage-script-name = true
|
||||
Reference in New Issue
Block a user