Django with mod_wsgi returns 403 error

前端 未结 3 1996
攒了一身酷
攒了一身酷 2021-01-21 06:04

I am trying to use Django with Apache (and mod_wsgi). With the default Django webserver everything was going well, but now I get 403 (access forbidden) error when trying to load

3条回答
  •  忘掉有多难
    2021-01-21 07:00

    Apache runs as a special user, it will not be able to read stuff with permissions of 770.

    Watch the talk at:

    http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Conference_Presentations

    which explains things about permissions.

    The key for working out the problem is what error message appears in your Apache error log. You do not even state what error messages you get in the log file. The talk linked to shows what those error messages might be and what they mean.

提交回复
热议问题