User Domains

You may, if you wish, host your static web content on another static web host somewhere, and keep your dynamic data in a database here; Our javascript API allows your static pages to access databases here from any host.

You can, if you prefer, host your entire website here; We will store your pages in a database table and make them requestable via url.

You can point your own domain at our server, and use that domain to request pages using very natural urls. You could retrieve pages from the database using urls that look like or .

URL Path Mapping

Once your configure your domain, using your domain registrar's DNS zone editor tool, and register your domain here from the Domains page (linked from your profile), you can save pages in the database, and request them using plain old urls.

The steps to set this up include:

  1. Point your domain at our site. This is described in the DNS how-to page.
  2. Register the domain on the User Domain page here. When you do this, RdbHost will create a files table in the lookup schema.
  3. Upload your files to your account. The easy way is to use an SFTP client, but you could use SQL to insert into the table directly.

Page Headers

You can control what headers are sent with your pages in the lookup.files table, by putting the desired headers in the lookup.page_headers table.

This table has 3 relevant columns: path, name, and value.

The path is left-hand matched against the page path, and matched entries are de-duped and sent as response headers by the server. Only one entry is sent for each name, and the longest path for each name is the entry sent. A more general entry can be overridden with no-entry by including a more specific path with a '' or ' ' value.

An example:

[path] [name] [value]
/ Content-Type text/html
/imgs Content-Type image/jpg
/imgs/funny Content-Type image/gif
/imgs/funny Cache-Control max-stale=3600
/imgs/funny/video Cache-Control

The first entry would be sent for page /index.html, the second for /imgs/logo.gif, and the third and fourth for /imgs/funny/banana-slip.gif. The longest match goes, for each name value. The last entry removes the Cache-Control header altogether for videos.

Content-Length is added automatically, overriding any you might specify.

The path used to lookup pages always starts with a slash, and the root 'document' is just '/'. Except for the root, trailing slashes will be trimmed off the path before lookup.

The RdbAdmin utility could be useful for adding small files to the lookup.files table.