The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
320 views

Extra 301 redirect with nginx and uwsgi

I've the following nginx conf: server { server_name tawp.in; location / { rewrite ^/r/([^/]*)$ /s/ta/$1; rewrite ^/e/(.*)$ /en/ta/$1; uwsgi_pass ...
4
votes
1answer
2k views

UWSGI and NGINX for Python Apps on Ubuntu 11.10

I am trying to find an optimal way to set up my server to use NGINX and UWSGI to serve python applications. The following has worked so far: Initial setup: sudo apt-get install nginx uwsgi ...
5
votes
2answers
4k views

“ImportError: No module named flask” - Trouble with nginx + uWSGI + Flask in a virtualenv setup

I got nginx + uWSGI running on localhost inside a virtualenv with a simple hello world program, but I get this error when I replace the hello world with a simple Flask app: File ...
2
votes
1answer
3k views

Nginx + uWSGI + Django performance stuck on 100rq/s

I have configured Nginx with uWSGI and Django on CentOS 6 x64 (3.06GHz i3 540, 4GB), which should easily handle 2500 rq/s but when I run ab test ( ab -n 1000 -c 100 ) performance stops at 92 - 100 ...
3
votes
1answer
606 views

Analyze uwsgi strace log to find out why it takes high CPU usage

I'm running a django site with nginx through uwsgi. The problem is uwsgi process take a lot of CPU time when traffic become heavy. The same configuration works fine on test server and siege/ab ...
1
vote
1answer
664 views

Is there a way to force pid in upstart script

I am running a uwsgi-python server under ubuntu 10.04. I use upstart to start/stop a uwsgi daemon(daemonize option is set for uwsgi). Start and stop commands work fine, but when i try to reload my ...
2
votes
2answers
737 views

Installing Pootle with uwsgi on ubuntu server

I'm trying to install a Pootle server on an ubuntu server under uwsgi. While everything went ok on my local dev server, when online i got this error i cannot overcome. It seems application-related, ...
0
votes
3answers
1k views

How do I add a URL prefix (/wiki) to MoinMoin running on uWSGI and nginx?

I just set up uWSGI and nginx (with the uWSGI module) and would like to get MoinMoin set up. I'm running uWSGI with MoinMoin with the command below: /usr/bin/uwsgi -s moin.sock --wsgi-file ...
3
votes
4answers
1k views

Comet with uwsgi and nginx, how to turn off the output buffer?

How can I prevent Nginx from buffering the output of my uwsgi app? For my comet style application I'm using long polling and the requests are now buffered. I tried to reduce the size of the buffers, ...
0
votes
2answers
128 views

User has problem with loading speed of website

We are using nginx as reverse proxy. There are 4 servers (1x nginx, 2x uWSGI, 1x DB + Memcached). One user told me some time ago, that he has for 3 months problems with loading speed of website. Every ...
0
votes
1answer
968 views

uWSGI Virtualhost mode with touch-reload

So far I have been experimenting with uWSGI to replace a lot of kludgy server code that builds and does setup for Python wsgi applications under supervise. I am running dozens of these small projects ...
0
votes
1answer
4k views

Nginx + uWSGI on localhost *always* gives 502 Bad Gateway. Any ideas how to solve this?

After a long time on shared hosting, I'm moving my stuff to a VPS and it has become necessary to learn about Nginx + uWSGI to deploy my apps (python). After spending a couple of weeks learning the ...
2
votes
1answer
2k views

Nginx+uWsgi+Flask cannot setup success

I want use nginx, uWsgi, Flask on centos 5, but always has some error. 3 app are all newest version, the uwgsi_params file copy from uwsgi/nginx. I use virtualenv to config python env. project ...
5
votes
1answer
2k views

nginx+ uwsgi gives 502 Bad Gateway

I used this guide to set it up and it was working to server my django app for a while, but after adding a new django module, without touching any of the nginx or uwsgi configs, now the server leads to ...
3
votes
2answers
2k views

how to do a graceful uwsgi reload via bash script?

I have a django application which is executing a bash script. I require the nginx server to restart so I run /etc/init.d/nginx reload which works great. I have been using restart uwsgi for uwsgi but I ...
0
votes
1answer
735 views

uWSGI touch-reload feature not working with 100% CPU

On my development box, I have configured uWSGI to reload every time a file gets touched (using the --touch-reload command line argument). When I specify a non-existent file, I get a warning in the ...
2
votes
1answer
2k views

Correct number of uWSGI processes?

On a 4-core box which scenario makes the better setup: 4 uWSGI processes with a deep queue to handle requests 8 uWSGI processes with a deep queue As many many processes as the server's memory ...
0
votes
3answers
972 views

Script (bash) to automatically start/restart nginx (if it fails)

Can someone help me to setup nginx on my box? I have compiled it (i'm using it to run Django app using uwsgi_rs). Its running OK but i have to start it manually. How can i setup it to autorun? And ...
2
votes
1answer
868 views

Mutli-Site uWSGI config

I have about a dozen small Django sites I want to run using Nginx and uWSGI. They are on a 4-core server with 8 gigs of ram. Should each site be configured on its own socket and how can I control the ...
2
votes
1answer
2k views

Moin, uWSGI & nginx - setting up at <my-domain>/wiki

I am trying to set up a MoinMoin Wiki install on our nginx/uWSGI server using a sub-directory. We already have a Django app running on :80. Initially I setup the Moin app with it's own server block ...
1
vote
4answers
2k views

Nginx + uWSGI on a fresh Ubuntu install - bind error port 80

I know this is a common problem usually having to do with apache or another service already running on port 80 and I have done a lot of searching and running netstat and still have not figured out why ...
1
vote
1answer
1k views

any tutorial to set up nginx+ uwsgi to serve pylons apps?

Currently I am using nginx to reverse proxy paster, to server Mediacore (a Pylons app). However, this configuration fails when I try to submit a video. I particualrly try to avoid fat appache, which ...
0
votes
1answer
410 views

django/uwsgi/nginx invalid HTTP protocol

Any idea why this error happen when accessing nginx? uwsgi is running with the command: /usr/sbin/uwsgi --socket /home/user/run/project.sock --chmod-socket --pidfile /home/user/project/uwsgi.pid ...
3
votes
2answers
1k views

Nginx / uWsgi / Django site can handle more traffic with rewrite URL

I'm running a Django app, using uWsgi behind Nginx. I've been doing some performance tuning and load testing using ApacheBench and have discovered something unexpected which I wonder if someone could ...
0
votes
1answer
503 views

Cant start uwsgi in ubuntu 10.10

When I run "/etc/init.d/uwsgi start" nothing happens, the terminal just gives me a new line and no output. There is no sign of uswsgi in ps aux as well and /var/log/uwsgi.log is empty I'm folowing ...
0
votes
3answers
2k views

Django, uWSGI and Supervisord config

OK I have Django, nginx and uWSGI set up on my server...the problem is I start uWSGI manually via this command: uwsgi -s /home/user/sites/sock/uwsgi.sock -t 10 -M -p 1 -C --pythonpath ...
3
votes
1answer
2k views

Nginx and uwsgi timeouts

I have nginx serving a django app powered by uwsgi. Occasionally I am getting 504's and want to increase the timeout. When using the nginx uwsgi module, do I need to use a special param to account for ...
0
votes
2answers
530 views

Configure uWSGI (+cherokee) to run as a specified user?

I have a cherokee serving django app using uWSGI. I want the uwsgi process user and group to be specified by me - how do I do this? (now uwsgi runs as 'www-data' user)
5
votes
2answers
1k views

Has anyone used uwsgi nginx and django for a high-load environment?

I was wondering if anyone has used uwsgi with nginx to serve a high-load django site before. If so, did they have any problems?