Dropbox — Hosting for Your Little Site
Monday, February 8, 2010
Live hack. Dropbox is nice product for synchronization of your files. Its easy to publish file dropping it in folder Dropbox/Public and then just copy public link. But Dropbox offers much more opportunities. You can host your site on Dropbox.
Recipe
1. Create in folder Dropbox/Public new folder, for example, Site.
2. Create in new folder files of your site, for example index.html and style.css — yes-yes, Dropbox will send these files correctly to browser. You can use html + css (+ of course, javascript) + your data (pics, xml...). The most important — its enough to use relative addressing, that is, for example, connect css-styles "link rel="stylesheet" href="style.css" type="text/css". Access right to file must be drwxr-xr-x.
3. Copy public link on your main html, for example, index.html. The link will look like dl.dropbox.com/u/1234567/Site/index.html, where 1234567 — your account id.
And here we are. Your site is in internet!
Moreover Dropbox hosting solution works for all the operation systems. Go ahead!
