我已经尝试了很多次这个文章的https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-centos-7,但我没有得到结果。
我使用CentOS7和CWP的专用服务器,但无法通过nginx服务器连接我的wsi.py文件
我是第一次在centos7 cwp上部署,所以请随时建议我作为新手。
发布于 2021-05-30 00:46:10
假设您无法将nginx配置为通过您的应用程序的流量。您需要在cwp的/etc/nginx/conf.d/vhosts/中更新您的域名的vhost,添加以下内容:
location /static/ {
root /home/domain_account/public_html/;
expires 1d;
}https://stackoverflow.com/questions/62829253
复制相似问题