A
A
Andrey Voskresensky2016-03-18 17:38:04
Django
Andrey Voskresensky, 2016-03-18 17:38:04

How to raise a Django server on Nginx + Uwsgi?

Immediately I ask people who will send to Google - DO NOT WRITE ANYTHING AT ALL !!! I googled EVERYTHING!!! And I tried 20 times!
The problem is, - I completely did all the steps from the article www.digitalocean.com the server writes "start: Job is already running: uwsgi" but when I go to the IP nothing works! I use a virtual environment, as I understand it, I installed django 1.9 python-dev into it (not in an environment, as I understand it) !!
The first time I tried to raise it through Apache several times, then I deleted it !! But now, when nginx supposedly works, when I go to IP it says: (Forbidden You don't have permission to access / on this server. Apache/2.4.7 (Ubuntu) Server at 192.168.0.100 Port 80)
Maybe someone can explain how to raise server, I will be very grateful!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Voskresensky, 2016-03-21
@Voskresenskyi

hell knows what was nginx worked fine and saw the configs squeals, squeals in turn also worked fine! it was decided to reinstall the OS on the ubuntu server and everything worked (on the same config) !!
oh yes, thank you very much Roman Kitaev

N
neonox, 2016-03-18
@neonox

1. If you configured nginx, where did you get Apache from?
2. The web server does not have access to the files. Check your rights.
Try again with another browser. Maybe the page is cached

U
uturet, 2017-05-27
@uturet

watch this video python3+nginx+django+uwsgi+debian
this is also python2+django+nginx+uwsgi+ubuntu16
there is also a tutorial on habré
in addition to everything, if you ran it on a VPS you can see the functionality it may be possible to preinstall django right away and set up the server:
510f0341674b4c51817db89f199b04a8.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question