How to migrate a web from Google cloud hosting to personnel domain ??
As you use the "google-cloud-storage" tag, I am going to assume you are storing your website as static files in a GCS bucket and serving it from bucket.storage.googleapis.com or storage.googleapis.com/bucket.
The easiest options are:
Follow the GCS Static Site instructions to keep the content on GCS and serve it on your domain.
Download the files from https://console.cloud.google.com/storage/browser. Then upload the files to a shared hosting or VPS provider who will then serve the content on your domain.
Related
I want to host my SPA (vue) on azure blob storage an my backend (laravel) as an azure web app.
The frontend domain is:
domain.com
and the backend lives on:
api.domain.com
However, not all static assets are on domain.com ... Some assets such as uploaded files are hosted on the backend server.
How can redirect requests from azure blob storage to the backend server if the file is not found on the frontend? I could only find an option to define a 404 html. Can I somehow configure a web.config the way I can do it with webapps?
You cannot config a web.config on static website hosting for Azure Storage.
On a static website, webpages contain static content and JavaScript or other client-side code
things like web.config are server side configuration.
https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website
I want a static/html Website to be hosted on Google Bucket. Let's say example.com to be hosted on Google Cloud Storage Bucket.
But then Google is asking me to verify domain ownership by UPLOADING A FILE onto the site?
But as I mentioned, I want to host the website inside the Google Bucket. Then how do I upload the file without having the Bucket first? This is becoming a chicken and egg problem to me.
Someone help me with this step, please.
Google support several methods to validate domain control.
Since you do not have a website setup yet, chose the Domain name provider method. Using this method you create a special DNS TXT record in your DNS server. Google reads this DNS TXT record which verifies that you have control of the domain name.
Google Verification Methods
I'm trying to serve my cloud storage content using custom domain over https. Currently, I'm using Amazon S3 with CloudFront to deliver the content using custom domain over https. But S3 with CloudFront is costly, So I'm now searching for an alternative.
Is Azure or Google Cloud natively support to serve content using custom domain over https. Without using CDN?
At the moment, google cloud storage only support HTTP. As per documentation To serve your content through a custom domain over SSL, set up a load balancer, use a third-party Content Delivery Network with Cloud Storage, or serve your static website content from Firebase Hosting instead of Cloud Storage.
I was able to find this blog which might help you on the setup.
With that being said, if you are looking for functionality like this you may also try with App Engine, as by default, HTTPS connections on your custom domain will automatically be enabled using managed SSL certificates. You can visit this link for more details. Also, there is a there is a feature request submitted to support auto managed SSL with GCLB.
Is Azure or Google Cloud natively support to serve content using
custom domain over https. Without using CDN?
Azure allows you to map a custom domain to your blob storage endpoint. Using this, you can serve the content stored in blob storage using a custom domain. You can read more about it here: https://learn.microsoft.com/en-us/azure/storage/blobs/storage-custom-domain-name
However please note that this will not work over https. For https, you will need to use Azure CDN.
The OP's needs will be met by using Firebase as mentioned in passing by #KarthickN.
Firebase is a Google product which deploys your own domain name site automatically through SSL (https). You can first push your site onto one of the remote git repositories and use CI/CD for Firebase to deploy. You don't need to worry about CDN as firebase will use Google's global edge servers. Small usage is free then move onto paid plans as your needs grow plans
I answered a similar question here.
Is there any way to host static website (HTML + CSS + JS) in Azure? Like we do Amazon S3 Static Website hosting, they charge only for storage.
UPDATE: 29-June-2018
It is now possible to host static websites in Azure Storage. You can read more about it here: https://learn.microsoft.com/en-gb/azure/storage/blobs/storage-blob-static-website
As of today, no. Azure doesn't have an equivalent of that. You can however host static sites as Web Apps and for free as well if you're comfortable with the restrictions with free tier.
It's not officially supported, but if you hosted your site in Azure Blob Storage's root container and made the container publicly accessible, you could probably achieve the same affect. You can even give the blob storage account a custom domain name.
Only downside is that you'll have to figure out a good deployment story. Two of your options are to use an FTP-like client such as CloudBerry to manually deploy your site, or write your own deployment script using the blob storage api
I found a way to host a static website in an Azure blob, using a subdomain and an http re-direct
I do the following
1) In Azure I create a storage account with a container ( called docs ) that has Blob access policy.
2) I upload my static website to the docs container using the storage explorer. This includes some PHP files in a sub folder.
3) In the DNS I set up a cname record for a subdomain ( called info say) with alias myblob.blob.core.windows.net ( where myblob is the name of my blob)
4) In the DNS I create an Http redirect for record to a file on the subdomain for www with url http://info.mydomainname.com/docs/index.html
5) In Azure I create a custom domain for info.mydomainname.com
My website then works however if someone knows the location of the PHP files then they can download them which means I must not store secrets in them.
I have asked if there is a work around here
I have a web site hosted on Azure (http://mike-ward.azurewebsites.net/). I set up an Azure CDN from the Azure portal that points to (references?) my web site. According to the articles and docs I've read, content is only served from the /cdn/ folder (http://az667460.vo.msecnd.net/cdn/images/favicon.ico for example). However, it also seems to serve the dynamic web site stuff by simply referencing the root (http://az667460.vo.msecnd.net/).
Has the policy changed with regard to serving content from other than the /cdn/ folder? If not, what's happening here?
Al website content is now available through the CDN, see these new examples:
http://azure.microsoft.com/en-us/documentation/articles/cdn-websites-with-cdn/
In your site you manage the url, so if a resource is referenced with the CDN url: http://az667460.vo.msecnd.net it will be served from the CDN.
the special /cdn folder isn't required anymore