I am not entirely sure what you mean by that. If you mean the nginx
equivalent of Apache VirtualHosts then the nginx wiki explains it quite
nicely http://wiki.nginx.org/ServerBlockExample. Is that what you meant?

Karl Sutt


On Mon, Apr 30, 2012 at 7:04 PM, easypie <[email protected]> wrote:

> does your configuration allow for running multiple sites?
>
>
> On Sunday, April 29, 2012 12:01:27 PM UTC-7, Karl Sutt wrote:
>>
>> Here is my uWSGI command and nginx.conf contents:
>>
>> uwsgi -- http://www.dpaste.org/**aiJuq/ <http://www.dpaste.org/aiJuq/>
>> nginx -- http://www.dpaste.org/**bAG0o/ <http://www.dpaste.org/bAG0o/>
>>
>> I've used it for a Flask application, but I've just tested it and it
>> works for a Django project as well. Note that wsgi.py file in the uwsgi
>> command is the Python file that Django generates when you first create a
>> project, there is no need to change it.
>>
>> Good luck!
>>
>> Karl Sutt
>>
>>
>> On Sun, Apr 29, 2012 at 6:49 PM, easypie <[email protected]> wrote:
>>
>>> I have this file that was created for me by one of the users in django's
>>> irc channel. I edited to have the right information inserted but I"m not
>>> sure what I'm doing wrong to not make it work. I've spent some time trying
>>> to understand each line by searching the web. There's still a thing or two
>>> that's missing from the puzzle. Maybe it's the server config that has a
>>> flaw or the way I went about it. I haven't done a fresh install of uwsgi
>>> and nginx yet. However, please take a look to see if there's an error or
>>> solution that could work. Thanks.
>>>
>>> Link to code: http://www.dpaste.org/**wWVd3/<http://www.dpaste.org/wWVd3/>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To view this discussion on the web visit https://groups.google.com/d/**
>>> msg/django-users/-/**2rekHP0I6V0J<https://groups.google.com/d/msg/django-users/-/2rekHP0I6V0J>
>>> .
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to django-users+unsubscribe@*
>>> *googlegroups.com <django-users%[email protected]>.
>>> For more options, visit this group at http://groups.google.com/**
>>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>> .
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/sMsRN5iG9NQJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to