Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Mod_rewrite on Amazon S3

0

63 views

Hi,

Is it possible to use mod_rewrite on Amazon S3?

www.example.com/about.html -> mybucket.s3.amazon.com/index.html
www.example.com/welcome.html -> mybucket.s3.amazon.com/index.html
www.example.com/contact.html -> mybucket.s3.amazon.com/index.html

Thanks!

asked February 21, 2011 4:16 am CST
posted via StackOverflow

2 Answers

0
 

No.

But you can host it under a different sub-domain. eg You can have

s.example.com/about.html 
s.example.com/welcome.html 
s.example.com/contact.html

and serve them directly from it. Better still is serving these files in cloudfront. Here is how you get your own subdomain in cloudfront.

One question to you is. All these files are mostly static, not performance heavy and rarely visited. Hosting them in CDN looks bit overkill.

answered February 22, 2011 12:59 pm CST
0
 

In this case you can use Error Document.

enter image description here

answered March 2, 2011 1:03 pm CST

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions