Re: deploy ?
You can use nxinx with uwsgi even with several domain names, nginx takes
care of that, you just run several uwsgi/gunicorn processes on different
tcp ports or unix sockets, and nginx will just select the one that fits
for its domain name (set in config) of course you need to set it properly..
Anyways, when you want to host multiple python sites with
nginx/something, I'd recommend uwsgi with supervisor .. which will help
you manage the apps really easy ... of course you can use gunicorn
instead of uwsgi ... it is up to you ...
Lukas
Dne 12. 10. 2013 10:51, Diogene Laerce napsal(a):
>
>> Have you enabled the necessary WSGI modules in Apache and performed
>> the necessary configuration? You have to remember that the Django
>> python files need an application server to compile and process. Apache
>> out of the box doesn't do that. mod_wshi is one option.
>
> I guess you mean mod_wsgi cos I didn't find info on wshi. :)
>
> Anyway I solved the problem : django pointed the url on localhost root. I
> tried every combination of urls before except this one.
>
>> The others are using Nginx as a reverse proxy to the Gunicorn
>> application server.
>
> I had a look on those and I'd like to be sure of what I understood : I can
> use 2 http servers, gunicorn for dynamic contents and nginx for static
> contents. And all that, through a virtual environment (my workstation :
> debian squeeze) served by pythonbrew. Yes ?
>
> But I saw that some people use uwsgi too, on their website they say it
> is for hosting purpose. So unless I need to run multiples domain names
> on the same host, I do not need it, do I ?
>
> Thank you
>
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/52598861.8050109%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home