Hi All,

below are the nginx-uwsgi.conf and project.ini files

q) Why does the new page not 'display' its content?

in the top URL field, insertDB.py script file name appears... but the
page content displayed is still of index.py page ..

===============================
nginx-uwsgi.conf
-----------------------
server {
  listen 81 default_server;
  server_name localhost;


  location / {
                root /home/nitin/project;
                index  index.py index.html index.htm;
  }

  location ~ \.py$ {
    include uwsgi_params;
    uwsgi_modifier1 9;
    uwsgi_pass 127.0.0.1:9090;
    uwsgi_param UWSGI_PYHOME /home/nitin/project;
    autoindex on;
    include fastcgi_params;
    fastcgi_pass 127.0.0.1:9090;
    fastcgi_index index.py;
    fastcgi_param SCRIPT_FILENAME /home/nitin/project$fastcgi_script_name;
  }
}

#/etc/uwsgi --http :9090 --http-modifier1 9 --ini
/homenitin/project/project.ini --master;


===================
project.ini
----------------
[uwsgi]
http-socket    = :9090
http-modifier1 = 9
plugin    = cgi
chdir = /home/nitin/project/
#module = interface
wsgi-file = index.py
master = yes
process   = 3
thunder-lock = yes
enable-threads = yes
#exit-on-reload = true
cgi = /home/nitin/project/
cgi-index = index.py
cgi-allowed-ext = .py
cgi-helper = .py=python
offload-threads = 8
vacuum = true
harakiri = 30
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to