Keywords: WordPress - AWS - How to - Permissions
When i try to access a pdf file in the uploads folder, its currently giving me 404 error.
I added this code to the htaccess.conf file in wordpress/conf directory and restarted apache.
<Directory "/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads"> <FilesMatch "\.(mov|mp3|jpg|pdf)$"> <IfModule !mod_authz_core.c> Allow from all </IfModule> <IfModule mod_authz_core.c> Require all granted </IfModule> </FilesMatch> </Directory>
However, it still does not allow the pdf to be viewed.