I have the following setup:
mydomain.com
mydomain.com/myapp
.csv
files hosted on an S3 bucket named myapp
at the following endpoint like so: s3-us-west-2.amazonaws.com/myapp/sample_file.csv
CNAME
for my domain and an Elastic IPEverything works fine. However, now I want to update the URL's in my app to mask the longer AWS prefix and replace it instead with: mydomain.com/myapp/sample_file.csv
Every tutorial I've seen deals with subdomains like: myapp.mydomain.com/sample_file.csv
which I DON'T want (since this particular app should only be accessed at the /myapp
URL)
Is this possible?
You could point a custom domain name to your Amazon S3 bucket. The basic steps are:
dl.mydomain.com
)dl
subdomain:
A
Details: Example: Setting Up a Static Website Using a Custom Domain
Then, put objects in the bucket within the myapp
directory, eg myapp/file.csv
. You will then be able to access the file via: dl.mydomain.com/myapp/file.csv