Is it possible to host a static HTML website on App Engine? And how to make my domain name work with it?
To host a web page on Google Drive: Create a folder in Google Drive and set the sharing permission to “Public on the Web.” Upload the HTML, JavaScript and CSS files for your web page to the new folder. Select the HTML file, open it and click the “Preview” button in the toolbar.
Yes you can host your static files on AppEngine. Just configure your app.yaml-file like the following
- url: / static_dir: static_files
And put your files in the directory static_files. This way every request is routed to your static files.
I just had the same problem and decided to use this solution... It serves static files from the root directory and uses index.html if you don't give an file. Hope that helps.
# re-direct to index.html if no path is give - url: / static_files: index.html upload: index.html # access the static resources in the root director - url: /(.*) static_files: \1 upload: (.*)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With