I have successfully linked a bucket to the Fastly CDN, but am having real issues with trying to redirect pages. I have been using the following guide as instructed by Fastly.
Basically it goes like this - let's say I have a domain called
I add that as the domain, I make the origin
storage.googleapis.com:443 and BOOM it works.
By it works, I mean that the webserver directory index works; when someone travels to
http://me.mydomain.com, it will redirect to
http://me.mydomain.com/index.html. Also, if I have a folder called
/test/ and I travel to there, it will search for an
index.html file in that directory and locate redirect to that file.
Now here is where things get quirky: If I want to let a client create an alias to
me.mydomain.com, I need to create an override host. Because if I don't, when I add my clients domain to the service, it will say that the bucket doesn't exist.
So I create the override host as
me.mydomain.com.storage.googleapis.com and I let the client create the following:
clientdomain.com <- to ->
Now once I do that, the new domain directs to the bucket. However, the Google Cloud Storage directory index redirects stops working and I start getting XML data of just the file lists if I go straight to the root domain.
So my question is: is there a way to make the Google Cloud Storage default file redirects to work with an override host?
I really don't want to resort to a user getting redirected every time they visit a website that is on GCS.