django : Serving static files through nginx

后端 未结 5 1818
醉话见心
醉话见心 2020-12-04 09:40

I\'m using apache+mod_wsgi for django.
And all css/js/images are served through nginx.
For some odd reason, when others/friends/colleagues try accessing

5条回答
  •  孤城傲影
    2020-12-04 10:28

    1. server_name must match hostname in link/script URLs. Either declare your configuration as default for this interface:port pair (listen 8000 default)
    2. Nginx must listen on the interface where your host's IP is bound (seems ok in your case)

提交回复
热议问题