I have mounted s3 bucket on ubuntu using s3fs. All i need to do is access this bucket (which has got my media files) using apache. I did set DocumentRoot
on /etc/apache2/sites-available
to S3 path, but when i access http://ubuntu_domain_name:80/BUCKET
it says 403. I did made bucket in S3 still it says 403. ( where ubuntu is an EC2 instance).
Then i pointed document root to some other directory, and created symbolic links to bucket, still i see 403 error.
All i want is, access S3 bucket with media files through apache sitting on ubuntu ec2.
Can anybody point me where i am doing wrong.
Thanks.
s3fs -o password_file=<path_pwd_file> BUCKETNAME /mnt/MOUNTPOINT
, is there any other way to mount ? – cb24allow_other
into your list of options should be sufficient – Flexos3fs BUCKETNAME -o allow_other -o password_file=<path_pwd_file> /mnt/mountpoint
and in apache, i gave/mnt/mountpoint
as document root. – cb24