0

我已经尝试过很多次这个艺术https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-centos-7但我不是得到结果。

我使用带有 CentOs 7 和 CWP 的专用服务器,但我无法通过 nginx 服务器连接我的 wsi.py 文件

我在 centos7 cwp 上进行第一次部署,所以请随时建议我更新鲜。

4

1 回答 1

0

假设您无法配置 nginx 来传递应用程序的流量。您需要通过添加以下内容来更新 cwp 中 /etc/nginx/conf.d/vhosts/ 中的域的虚拟主机:

location /static/ {
root /home/domain_account/public_html/;
expires 1d;
}
于 2021-05-29T16:46:09.813 回答