403 serving static files
Hi, I'm trying to serve static files using nginx, but nginx gives following error. - [error] 8202#8202: *10 open() "/home/user/myproject/media/xxx.jpg" failed (13: Permission denied) I've tried giving all users permission to this directory and it didn't change. What is the cause? I'm using mod_wsgi 4.7.1 and apache 2.4. my apache setting is here. WSGIPythonHome /home/user/mypythonenv WSGIScriptAlias / /home/user/myproject/myproject/wsgi.py WSGIPythonPath /home/user/myproject/myproject:/home/user/mypythonenv/lib/python3.6/site-packages WSGIApplicationGroup %{GLOBAL} Require all granted Alias /static/ /home/user/myproject/collected_static/ Options Indexes FollowSymLinks AllowOverride None Require all granted Alias /media/ /home/user/myproject/media/ Options Indexes FollowSymLinks AllowOverride None Require all granted -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/23624e5b-2701-45fb-9672-c179cb979403%40googlegroups.com.
Re: deploying django project with mod_wsgi and apache
I found out part of my code has problem, althogh I don't know why it didn't output an error. Anyway, thank you for reply. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/106caf50-87ae-4961-acf8-cae0ba85b728%40googlegroups.com.
Re: deploying django project with mod_wsgi and apache
AWS EC2 with Linux. Since deployment of "polls" app works fine, I think there is no problem with server... But django and apache give no error about my app. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7f0547ea-1cc6-4ad1-a4e1-fb1ef3aa972c%40googlegroups.com.
deploying django project with mod_wsgi and apache
I got completely stuck deploying django to production. I deployed my project using apache and mod_wsgi, and then it hangs I access it with browser. Neither django nor apache gives me any errors at all, so I can't guess the cause of problem. Since it can be accessed by starting with "runserver", I think there's nothing wrong with the project. Also, I can access it successfully when I deployed a simple test app with apache and mod_wsgi, I think there is no problem with the configuration of apache, mod_wsgi and my server. It would be very helpful if you give me any idea of the cause or way of investigate it. My environment django : 2.1.15 mod_wsgi : 4.7.1 apache : 2.4.6 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8d332ddf-ae69-4716-8107-daf69eff1497%40googlegroups.com.