0
votes
0answers
45 views

Can't run django with lighttpd and FCGI

I'm trying to run django on lighttpd but I'm not able to do it. In logs I see this: 2014-05-30 13:45:32: (log.c.166) server started 2014-05-30 13:45:32: (mod_fastcgi.c.1103) the fastcgi-backend ...
0
votes
1answer
91 views

Redirect with lighttpd and fastcgi on Django App

I have setup my lighttpd in a fashion which redirects all subdomains to my primary domain in following fashion * .domain.com -> domain.com. Unfortunately when i type in a subdomain such as ...
0
votes
0answers
48 views

Django, fastcgi, loadbalancing extremely slow

I experience alot of problems with Django and I would be very grateful if you could help me: I run a lighttpd as a loadbalancer with the following settings: $HTTP["host"] =~ "myproject$" { ...
1
vote
2answers
168 views

Unicode characters in nginx fastcgi links

I have a django project hosted over nginx with fastcgi. Django has some urls that user cyrillic characters. But when I try to open page with such link, django tells that it doesn't have such model, ...
2
votes
1answer
62 views

Supervisord unable to shutdown fcgi processes

I've managed to set up supervisord with fastcgi on a django project of mine, the problem is that when I make mi program stop, the server keeps running somehow, and my page keeps online. Here is my ...
1
vote
1answer
683 views

Connection refused while connecting to upstream

I'm running a Django website with nginx via fastcgi running on a TCP port 9000 on localhost. Everything appears to work correctly, but the error log is filled with lines like these: 2012/11/19 ...
1
vote
0answers
127 views

Lighttpd + django on gentoo 10 seconds to answer

I want to run a Django site on a lighttpd with fastcgi on a gentoo machine. Everytime I try to access the site I get a response after more or less exactly 10 seconds. Im using a socket to let lighttpd ...
0
votes
2answers
602 views

Nginx Doesn't serve Static Files [duplicate]

Possible Duplicate: nginx+django serving static files I followed this guide to deploy Django + Nginx on Ubuntu 11.10. Django works well but doesn't serve any static files. Here is an ...
1
vote
2answers
2k views

Django, nginx, FastCGI - running via unix sockets, permission problems

I've configured nginx to run django site via socket: fastcgi_pass unix:/tmp/django.socket; now I'm (manually) running ./manage.py runfcgi socket=/tmp/django.socket http request results in 502 ...
1
vote
0answers
310 views

django url matching with Lighttpd fastcgi

I have a problem with url. I can access the djando app home page ( localhost/djangotest/ ) but can't access the admin section ( localhost/djangotest/admin/ ). I can access it using the django server ...
1
vote
0answers
259 views

django, fastcgi, throws random 404 errors

I have a django website deployed on a shared webhost. The shared webhost uses fastcgi. I'm noticing that valid urls will randomly throw up http404 but as soon as I refresh will work again. does anyone ...
0
votes
0answers
78 views

Server not found error in Apache when accessing website via www.example.com

I have a whm server where i host a couple of websites. I usually assume that whm does a good job with setting up the site apache files. Cpanel says that it automatically configures the user vhost file ...
0
votes
1answer
165 views

Django app displaying the same page no matter what url visited

I have a simple Django application that I am using to test out a new deployment strategy using Nginx, FastCGI (using the latest version of flup at the time of writing) and daemontools. Basically the ...
0
votes
2answers
732 views

How can I run fastcgi through nginx as user ww-data?

My django app saves images and they're being saved as nobody:nobody instead of www-data: like they previously were under a different server. nginx is setup as user www-data and I ran the manage.py ...
2
votes
1answer
498 views

How to properly loadbalance separate fastcgi servers

We are running bigger deployment with multiple servers running Django applications under apache2 and mod_wsgi. We are considering switch to apache2 + fastcgi and moving fcgi processes to separate ...
3
votes
1answer
2k views

Nginx + Django + FastCGI WSGI error? (Non fatal)

Hi everyone I am running django on top of nginx with fastcgi. When i do runfcgi, I am seeing these errors: python manage.py runfcgi daemonize=false host=127.0.0.1 port=8000 WSGIServer: missing ...
9
votes
3answers
918 views

nginx + fastCGI + Django - getting data corruption in the responses sent to the client

I am running Django behind nginx using FastCGI. I have discovered that in some of the responses sent to the client, random data corruption is occurring in the middle of the responses (might be a ...
2
votes
4answers
2k views

Deploying django under a sub-URL with Nginx/Fastcgi

I can't for the life of me figure out how to deploy a django site under a non-root location with Nginx/fastcgi, e.g. localhost:8080/myproject/ instead of localhost:8080/; all the examples I have seen ...
2
votes
3answers
1k views

Running multiple FCGI/Django on Nginx for load sharing

I am running a web-service on Nginx/FastCGI/Django. Our processing time is fairly long and CPU intensive and I would like to be able to run multiple processes of Django/FastCGI to share the load. How ...
0
votes
1answer
176 views

lighttpd not reliable

I have a lighttpd running which serves a django-based webservice. It was running well for some months, but from today on, it returns a 410 sometimes, and sometimes fails silently. To test, I make a ...
3
votes
3answers
3k views

Nginx fastcgi problems with django (double slashes in url?)

I'm deploying my first django app. I'm familiar with nginx and fastcgi from deploying php-fpm. I can't get python to recognize the urls. I'm also at a loss on how to debug this further. I'd welcome ...
2
votes
2answers
369 views

In Djano, why do I get a 500 server error when browsing, but “python mysite.fcgi” from SSH works fine?

If I browse to my site, I get a 500 "internal server error." However, if I SSH into my server and go to my site's folder and run "python mysite.fcgi" I see the HTML rendered fine. Obviously, ...
4
votes
1answer
516 views

Django VPS Configuration

I'm looking to run some Django sites on my VPS, with nginx acting as a front-end for it. I've been having some issues with mod_python and Apache, the site just starts erroring out whenever the traffic ...
0
votes
2answers
867 views

Django .htaccess

I have a site that is only partially Django driven. I want the Django portion to be anything under http:www.mydomain.com/register. Anything not in this directory should get served by apache as ...
4
votes
2answers
2k views

Better webserver performance for Python Django: Apache mod_wsgi or Lighttpd fastcgi

I am currently running a high-traffic python/django website using Apache and mod_wsgi. I'm hoping that there's a faster webserver configuration out there, and I've heard a fair number of ...
3
votes
3answers
744 views

What's the optimal way to set up a Django server to serve multiple sites?

I currently use Apache 2.0 and FastCGI to serve my Django sites (I host multiple sites from a single server / IP). Each site has it's own FastCGI process which stops Apache forking multiple copies ...