May 2018
Beginner to intermediate
526 pages
11h 57m
English
Create a new file inside the config/ directory and name it nginx.conf. Add the following code to it:
# the upstream component nginx needs to connect toupstream educa { server unix:///tmp/educa.sock;}server { listen 80; server_name www.educaproject.com educaproject.com; location / { include /etc/nginx/uwsgi_params; uwsgi_pass educa; }}
This is the basic configuration for NGINX. We set up an upstream named educa, which points to the socket created by uWSGI. We use the server directive and add the following configuration:
Read now
Unlock full access