Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Has anyone been successful in having their DocumentRoot reside on an S3 mount (using s3fs)?

I currently have a mounted bucket at /mnt/s3. I can read and write files to it no problem. In my httpd.conf I have DocumentRoot "/mnt/s3".

When I restart Apache I get the error "DocumentRoot must be a directory".

Has anyone tried something similar. My goal is to have a shared storage space so my nodes can scale easily and access the same document root.

Thanks

share|improve this question
add comment

1 Answer

Short Answer - No - S3 is not a block-level storage device so you can't use it as your apache root. You need to use EBS for that.

But - you can host your website on S3 if there is only static content (i.e. no PHP/ruby/etc - javascript is ok because it runs in the browser and not on the server) in which case you don't even need the apache server.

http://docs.amazonwebservices.com/AmazonS3/latest/dev/WebsiteHosting.html

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.