Django using Nginx to serve static content

前端 未结 1 1445
故里飘歌
故里飘歌 2021-01-26 19:08

I am trying to configure nginx to serve the static content for my django project on a remote VPS. I\'m using the following configuration for my nginx instance:

s         


        
相关标签:
1条回答
  • 2021-01-26 19:46

    You shouldn't access your website by 123.123.123.123:8001 because that's the port django is using. You are supposed to access 123.123.123.123 (that is port 80) where nginx is running.

    0 讨论(0)
提交回复
热议问题