February 2018
Beginner to intermediate
348 pages
9h 40m
English
The Nginx configuration is similar to the PHP one:
server {
server_name .website.com;
listen 80;
# Insert the path of your Python project public files below
root /home/website/www;
index index.html;
location / {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
include fastcgi_params;
}
}
Read now
Unlock full access