i am using python 3.6 django 2.1
installed via the launch on aws button
I had an image carousel that worked fine on my development machine, now any attempts to get at the images results in a 403 error according to apache2/logs/access_log
I have tried changing all my image files to -rw-r--r-- and verified that the diretories that they are in are drwxr-xr-x.
I tried changing Directory "/opt/bitnami/apps/django/django_projects/wondjina/wondjina"
to Directory "/opt/bitnami/apps/django/django_projects/wondjina" and
Directory "/opt/bitnami/apps/django/django_projects/wondjina/"
I also tried adding the following to apache2/httpd.conf
Directory /opt/bitnami/apps/django/django_projects/wondjina/wondjinainfo/static
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
/Directory
my images are stored in /opt/bitnami/apps/django/django_projects/wondjina/wondjinainfo/static/wondjinainfo/images
my httpd_wondjinainfo.conf file looks like
IfDefine !IS_DJANGOSTACK_LOADED
Define IS_DJANGOSTACK_LOADED
WSGIDaemonProcess wsgi-djangostack processes=2 threads=15 display-name=%{GROUP}
/IfDefine
Directory "/opt/bitnami/apps/django/django_projects/wondjina/wondjina"
Options +MultiViews
AllowOverride All
IfVersion >= 2.3
Require all granted
/IfVersion
WSGIProcessGroup wsgi-djangostack
WSGIApplicationGroup %{GLOBAL}
/Directory
Alias /wondjina/static "/opt/bitnami/apps/django/lib/python3.6/site-packages/Django-2.0.2-py3.6.egg/django/contrib/admin/static"
WSGIScriptAlias /wondjina '/opt/bitnami/apps/django/django_projects/wondjina/wondjina/wsgi.py'
I have seen some solutions that look like the images were moved to /var/www i have been reluctant to try that so I don't start getting 404 errors on my image file
any solutions for this?
`