Nginx
Restart
sudo service nginx restart
Log file location
/var/log/nginx/
Redirect request configuration file template
server {
listen 80;
server_name 10.10.232.79;
location /static {
alias /home/ubuntu/ruyi_ml/static;
}
location / {
proxy_pass http://localhost:8000;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}